|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.ontopia.topicmaps.utils.QNameRegistry
public class 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.
Constructor Summary | |
---|---|
QNameRegistry()
PUBLIC: Creates an empty registry. |
Method Summary | |
---|---|
QNameLookup |
getLookup(TopicMapIF topicmap)
PUBLIC: Returns a QNameLookup object bound to a specific topic map. |
void |
registerPrefix(java.lang.String prefix,
java.lang.String uri)
PUBLIC: Registers a new prefix. |
LocatorIF |
resolve(java.lang.String qname)
PUBLIC: Creates a locator from a QName. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public QNameRegistry()
Method Detail |
---|
public void registerPrefix(java.lang.String prefix, java.lang.String uri)
public LocatorIF resolve(java.lang.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)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |