|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.ontopia.topicmaps.query.parser.GlobalParseContext
public class GlobalParseContext
INTERNAL: Represents the global immutable context of all tolog queries.
Field Summary |
---|
Fields inherited from interface net.ontopia.topicmaps.query.parser.ParseContextIF |
---|
ITEM_IDENTIFIER, MODULE, SUBJECT_IDENTIFIER, SUBJECT_LOCATOR |
Constructor Summary | |
---|---|
GlobalParseContext(PredicateFactoryIF factory,
TopicMapIF topicmap)
|
|
GlobalParseContext(PredicateFactoryIF factory,
TopicMapIF topicmap,
LocatorIF base)
|
Method Summary | |
---|---|
LocatorIF |
absolutify(java.lang.String uriref)
|
void |
addPredicate(PredicateIF predicate)
INTERNAL: Adds a new predicate to the context. |
void |
addPrefixBinding(java.lang.String prefix,
java.lang.String uri,
int qualification)
INTERNAL: Adds a prefix binding to the context. |
void |
dump()
INTERNAL: Used for debugging. |
ModuleIF |
getModule(java.lang.String uri)
|
TMObjectIF |
getObject(QName qname)
|
TMObjectIF |
getObjectByIdentifier(java.lang.String id)
|
TMObjectIF |
getObjectByItemId(java.lang.String uri)
|
TMObjectIF |
getObjectByObjectId(java.lang.String id)
|
PredicateIF |
getPredicate(ParsedRule rule)
|
PredicateIF |
getPredicate(QName qname,
boolean assoc)
INTERNAL: Returns the named predicate, or null if it does not exist. |
PredicateIF |
getPredicate(TopicIF topic,
boolean assoc)
|
TopicIF |
getTopic(QName qname)
INTERNAL: Interprets the given prefix and localname as a topic, returning null if none is found. |
TopicIF |
getTopicBySubjectIdentifier(java.lang.String uri)
|
TopicIF |
getTopicBySubjectLocator(java.lang.String uri)
|
TopicMapIF |
getTopicMap()
INTERNAL: Returns the topic map being parsed against. |
boolean |
isBuiltInPredicate(java.lang.String name)
INTERNAL: Used to find out if the given predicate name is the name of a built-in predicate. |
boolean |
isLoading(java.lang.String uri)
INTERNAL: Returns true if the uri is being loaded or has already been loaded. |
LocatorIF |
resolveQName(QName qname)
INTERNAL: Returns the full locator for the given QName, or reports an error if the prefix is unbound, or if the prefix is bound to something other than a subject identifier namespace (since this is used for the CTM part of tolog INSERT only). |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GlobalParseContext(PredicateFactoryIF factory, TopicMapIF topicmap)
public GlobalParseContext(PredicateFactoryIF factory, TopicMapIF topicmap, LocatorIF base)
Method Detail |
---|
public TopicMapIF getTopicMap()
ParseContextIF
getTopicMap
in interface ParseContextIF
public LocatorIF resolveQName(QName qname)
ParseContextIF
resolveQName
in interface ParseContextIF
public void addPrefixBinding(java.lang.String prefix, java.lang.String uri, int qualification)
ParseContextIF
addPrefixBinding
in interface ParseContextIF
prefix
- The prefix whose binding is being defined.uri
- The (possibly relative) URI reference to which the prefix is bound.qualification
- The interpretation of the URI. (Defined
using local constants.)public void addPredicate(PredicateIF predicate)
ParseContextIF
addPredicate
in interface ParseContextIF
public LocatorIF absolutify(java.lang.String uriref) throws AntlrWrapException
absolutify
in interface ParseContextIF
AntlrWrapException
public TMObjectIF getObjectByIdentifier(java.lang.String id)
public TMObjectIF getObjectByObjectId(java.lang.String id) throws AntlrWrapException
getObjectByObjectId
in interface ParseContextIF
AntlrWrapException
public TopicIF getTopicBySubjectIdentifier(java.lang.String uri) throws AntlrWrapException
getTopicBySubjectIdentifier
in interface ParseContextIF
AntlrWrapException
public TopicIF getTopicBySubjectLocator(java.lang.String uri) throws AntlrWrapException
getTopicBySubjectLocator
in interface ParseContextIF
AntlrWrapException
public TMObjectIF getObjectByItemId(java.lang.String uri) throws AntlrWrapException
getObjectByItemId
in interface ParseContextIF
AntlrWrapException
public TMObjectIF getObject(QName qname) throws AntlrWrapException
getObject
in interface ParseContextIF
AntlrWrapException
public TopicIF getTopic(QName qname) throws AntlrWrapException
ParseContextIF
getTopic
in interface ParseContextIF
AntlrWrapException
public PredicateIF getPredicate(QName qname, boolean assoc) throws AntlrWrapException
ParseContextIF
getPredicate
in interface ParseContextIF
AntlrWrapException
public PredicateIF getPredicate(TopicIF topic, boolean assoc)
getPredicate
in interface ParseContextIF
public PredicateIF getPredicate(ParsedRule rule)
getPredicate
in interface ParseContextIF
public ModuleIF getModule(java.lang.String uri)
getModule
in interface ParseContextIF
public boolean isLoading(java.lang.String uri)
ParseContextIF
isLoading
in interface ParseContextIF
public boolean isBuiltInPredicate(java.lang.String name)
ParseContextIF
isBuiltInPredicate
in interface ParseContextIF
public void dump()
ParseContextIF
dump
in interface ParseContextIF
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |