Package org.semanticweb.owlapi.util
Class QNameShortFormProvider
java.lang.Object
org.semanticweb.owlapi.util.QNameShortFormProvider
- All Implemented Interfaces:
ShortFormProvider
A short form provider which creates QNames for entities.
- Since:
- 2.0.0
- Author:
- Matthew Horridge, The University Of Manchester, Bio-Health Informatics Group
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a QNameShortFormProvider where namespace prefix mappings will automatically be generated.QNameShortFormProvider
(Map<String, String> prefix2Ns) Creates a QNameShortFormProvider where the specified map overrides any auto-generated prefix namespace mappings. -
Method Summary
Modifier and TypeMethodDescriptiongetShortForm
(OWLEntity entity) Gets the short form for the specified entity.Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.semanticweb.owlapi.util.ShortFormProvider
dispose
-
Constructor Details
-
QNameShortFormProvider
public QNameShortFormProvider()Creates a QNameShortFormProvider where namespace prefix mappings will automatically be generated. -
QNameShortFormProvider
Creates a QNameShortFormProvider where the specified map overrides any auto-generated prefix namespace mappings.- Parameters:
prefix2Ns
- The map which contains a prefix to namespace mapping. The prefix must not have a trailing ":"; if one is there, it will be removed
-
-
Method Details
-
getShortForm
Description copied from interface:ShortFormProvider
Gets the short form for the specified entity.- Specified by:
getShortForm
in interfaceShortFormProvider
- Parameters:
entity
- The entity.- Returns:
- A string which represents a short rendering of the specified entity. The returned value will not be null but might be an empty string.
-