Package net.ontopia.topicmaps.utils
Class QNameRegistry
java.lang.Object
net.ontopia.topicmaps.utils.QNameRegistry
PUBLIC: A utility class for producing full URIs from QNames. Allows
QName prefixes to be registered, and has a set of predefined QName
prefixes. Also allows topics to be looked up, via the QNameLookup
class.
- Since:
- 5.0.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetLookup(TopicMapIF topicmap) PUBLIC: Returns a QNameLookup object bound to a specific topic map.voidregisterPrefix(String prefix, String uri) PUBLIC: Registers a new prefix.PUBLIC: Creates a locator from a QName.
-
Constructor Details
-
QNameRegistry
public QNameRegistry()PUBLIC: Creates an empty registry.
-
-
Method Details
-
registerPrefix
PUBLIC: Registers a new prefix. -
resolve
PUBLIC: Creates a locator from a QName.- Throws:
OntopiaRuntimeException- if the syntax is incorrect, the prefix is not bound, or the resulting locator is not a valid URI.
-
getLookup
PUBLIC: Returns a QNameLookup object bound to a specific topic map.
-