Package net.ontopia.topicmaps.utils.ctm
Class GlobalParseContext
- java.lang.Object
-
- net.ontopia.topicmaps.utils.ctm.GlobalParseContext
-
- All Implemented Interfaces:
ParseContextIF
- Direct Known Subclasses:
LocalParseContext
public class GlobalParseContext extends Object implements ParseContextIF
-
-
Constructor Summary
Constructors Constructor Description GlobalParseContext(TopicMapIF topicmap, LocatorIF base)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addIncludeUri(LocatorIF uri)
void
addPrefix(String prefix, LocatorIF locator)
Set<LocatorIF>
getIncludeUris()
Template
getTemplate(String name, int paramcount)
Map
getTemplates()
ValueGeneratorIF
getTopicById(String id)
ValueGeneratorIF
getTopicByItemIdentifier(LocatorIF itemid)
ValueGeneratorIF
getTopicByQname(String qname)
ValueGeneratorIF
getTopicBySubjectIdentifier(LocatorIF subjid)
ValueGeneratorIF
getTopicBySubjectLocator(LocatorIF subjloc)
TopicIF
makeAnonymousTopic()
TopicIF
makeAnonymousTopic(String wildcard_name)
TopicIF
makeTopicById(String id)
TopicIF
makeTopicByItemIdentifier(LocatorIF itemid)
TopicIF
makeTopicBySubjectIdentifier(LocatorIF subjid)
TopicIF
makeTopicBySubjectLocator(LocatorIF subjloc)
void
registerTemplate(String name, Template template)
LocatorIF
resolveQname(String qname)
-
-
-
Constructor Detail
-
GlobalParseContext
public GlobalParseContext(TopicMapIF topicmap, LocatorIF base)
-
-
Method Detail
-
addPrefix
public void addPrefix(String prefix, LocatorIF locator)
- Specified by:
addPrefix
in interfaceParseContextIF
-
addIncludeUri
public void addIncludeUri(LocatorIF uri)
- Specified by:
addIncludeUri
in interfaceParseContextIF
-
getIncludeUris
public Set<LocatorIF> getIncludeUris()
- Specified by:
getIncludeUris
in interfaceParseContextIF
-
resolveQname
public LocatorIF resolveQname(String qname)
- Specified by:
resolveQname
in interfaceParseContextIF
-
getTopicById
public ValueGeneratorIF getTopicById(String id)
- Specified by:
getTopicById
in interfaceParseContextIF
-
getTopicByItemIdentifier
public ValueGeneratorIF getTopicByItemIdentifier(LocatorIF itemid)
- Specified by:
getTopicByItemIdentifier
in interfaceParseContextIF
-
getTopicBySubjectLocator
public ValueGeneratorIF getTopicBySubjectLocator(LocatorIF subjloc)
- Specified by:
getTopicBySubjectLocator
in interfaceParseContextIF
-
getTopicBySubjectIdentifier
public ValueGeneratorIF getTopicBySubjectIdentifier(LocatorIF subjid)
- Specified by:
getTopicBySubjectIdentifier
in interfaceParseContextIF
-
getTopicByQname
public ValueGeneratorIF getTopicByQname(String qname)
- Specified by:
getTopicByQname
in interfaceParseContextIF
-
makeAnonymousTopic
public TopicIF makeAnonymousTopic()
- Specified by:
makeAnonymousTopic
in interfaceParseContextIF
-
makeAnonymousTopic
public TopicIF makeAnonymousTopic(String wildcard_name)
- Specified by:
makeAnonymousTopic
in interfaceParseContextIF
-
registerTemplate
public void registerTemplate(String name, Template template)
- Specified by:
registerTemplate
in interfaceParseContextIF
-
getTemplate
public Template getTemplate(String name, int paramcount)
- Specified by:
getTemplate
in interfaceParseContextIF
-
getTemplates
public Map getTemplates()
- Specified by:
getTemplates
in interfaceParseContextIF
-
makeTopicById
public TopicIF makeTopicById(String id)
- Specified by:
makeTopicById
in interfaceParseContextIF
-
makeTopicByItemIdentifier
public TopicIF makeTopicByItemIdentifier(LocatorIF itemid)
- Specified by:
makeTopicByItemIdentifier
in interfaceParseContextIF
-
makeTopicBySubjectLocator
public TopicIF makeTopicBySubjectLocator(LocatorIF subjloc)
- Specified by:
makeTopicBySubjectLocator
in interfaceParseContextIF
-
makeTopicBySubjectIdentifier
public TopicIF makeTopicBySubjectIdentifier(LocatorIF subjid)
- Specified by:
makeTopicBySubjectIdentifier
in interfaceParseContextIF
-
-