ShortFormProvider
public class QNameShortFormProvider extends Object implements ShortFormProvider
Constructor | Description |
---|---|
QNameShortFormProvider() |
Creates a QNameShortFormProvider where namespace prefix mappings will
automatically be generated.
|
QNameShortFormProvider(Map<String,String> prefix2NamespaceMap) |
Creates a QNameShortFormProvider where the specified map overrides any
auto-generated prefix namespace mappings.
|
Modifier and Type | Method | Description |
---|---|---|
void |
dispose() |
Disposes of the short form proivider.
|
String |
getShortForm(OWLEntity entity) |
Gets the short form for the specified entity.
|
public QNameShortFormProvider()
public QNameShortFormProvider(@Nonnull Map<String,String> prefix2NamespaceMap)
prefix2NamespaceMap
- The map which contains a prefix to namespace mapping. The prefix
must not have a trailing ":"; if one is there, it will be removedpublic String getShortForm(@Nonnull OWLEntity entity)
ShortFormProvider
getShortForm
in interface ShortFormProvider
entity
- The entity.public void dispose()
ShortFormProvider
dispose
in interface ShortFormProvider
Copyright © 2018 The University of Manchester. All rights reserved.