|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ParseContextIF
INTERNAL: Represents an interpretation context for tolog queries.
Field Summary | |
---|---|
static int |
ITEM_IDENTIFIER
|
static int |
MODULE
|
static int |
SUBJECT_IDENTIFIER
|
static int |
SUBJECT_LOCATOR
|
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 |
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). |
Field Detail |
---|
static final int SUBJECT_IDENTIFIER
static final int SUBJECT_LOCATOR
static final int ITEM_IDENTIFIER
static final int MODULE
Method Detail |
---|
TopicMapIF getTopicMap()
LocatorIF resolveQName(QName qname)
void addPrefixBinding(java.lang.String prefix, java.lang.String uri, int qualification) throws AntlrWrapException
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.)
AntlrWrapException
void addPredicate(PredicateIF predicate) throws AntlrWrapException
AntlrWrapException
TopicIF getTopic(QName qname) throws AntlrWrapException
AntlrWrapException
TMObjectIF getObject(QName qname) throws AntlrWrapException
AntlrWrapException
PredicateIF getPredicate(QName qname, boolean assoc) throws AntlrWrapException
AntlrWrapException
PredicateIF getPredicate(TopicIF topic, boolean assoc)
PredicateIF getPredicate(ParsedRule rule)
ModuleIF getModule(java.lang.String uri)
LocatorIF absolutify(java.lang.String uriref) throws AntlrWrapException
AntlrWrapException
TopicIF getTopicBySubjectIdentifier(java.lang.String uri) throws AntlrWrapException
AntlrWrapException
TopicIF getTopicBySubjectLocator(java.lang.String uri) throws AntlrWrapException
AntlrWrapException
TMObjectIF getObjectByItemId(java.lang.String uri) throws AntlrWrapException
AntlrWrapException
TMObjectIF getObjectByObjectId(java.lang.String id) throws AntlrWrapException
AntlrWrapException
boolean isLoading(java.lang.String uri)
boolean isBuiltInPredicate(java.lang.String name)
void dump()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |