public class QNameShortFormProvider extends java.lang.Object implements ShortFormProvider
Constructor and Description |
---|
QNameShortFormProvider()
Creates a QNameShortFormProvider where namespace prefix mappings will
automatically be generated.
|
QNameShortFormProvider(java.util.Map<java.lang.String,java.lang.String> prefix2NamespaceMap)
Creates a QNameShortFormProvider where the specified map overrides any
auto-generated prefix namespace mappings.
|
Modifier and Type | Method and Description |
---|---|
void |
dispose()
Disposes of the short form proivider.
|
java.lang.String |
getShortForm(OWLEntity entity)
Gets the short form for the specified entity.
|
public QNameShortFormProvider()
public QNameShortFormProvider(java.util.Map<java.lang.String,java.lang.String> prefix2NamespaceMap)
prefix2NamespaceMap
- The map which contains a prefix -> namespace mapping.public java.lang.String getShortForm(OWLEntity entity)
ShortFormProvider
getShortForm
in interface ShortFormProvider
entity
- The entity.public void dispose()
ShortFormProvider
dispose
in interface ShortFormProvider