public class QNameRegistry extends Object
Constructor and Description |
---|
QNameRegistry()
PUBLIC: Creates an empty registry.
|
Modifier and Type | Method and Description |
---|---|
QNameLookup |
getLookup(TopicMapIF topicmap)
PUBLIC: Returns a QNameLookup object bound to a specific topic map.
|
void |
registerPrefix(String prefix,
String uri)
PUBLIC: Registers a new prefix.
|
LocatorIF |
resolve(String qname)
PUBLIC: Creates a locator from a QName.
|
public void registerPrefix(String prefix, String uri)
public LocatorIF resolve(String qname)
OntopiaRuntimeException
- if the syntax is incorrect, the prefix
is not bound, or the resulting locator is not a valid URI.public QNameLookup getLookup(TopicMapIF topicmap)