public interface ParseContextIF
Modifier and Type | Field and Description |
---|---|
static int |
ITEM_IDENTIFIER |
static int |
MODULE |
static int |
SUBJECT_IDENTIFIER |
static int |
SUBJECT_LOCATOR |
Modifier and Type | Method and Description |
---|---|
LocatorIF |
absolutify(String uriref) |
void |
addPredicate(PredicateIF predicate)
INTERNAL: Adds a new predicate to the context.
|
void |
addPrefixBinding(String prefix,
String uri,
int qualification)
INTERNAL: Adds a prefix binding to the context.
|
void |
dump()
INTERNAL: Used for debugging.
|
ModuleIF |
getModule(String uri) |
TMObjectIF |
getObject(QName qname) |
TMObjectIF |
getObjectByItemId(String uri) |
TMObjectIF |
getObjectByObjectId(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(String uri) |
TopicIF |
getTopicBySubjectLocator(String uri) |
TopicMapIF |
getTopicMap()
INTERNAL: Returns the topic map being parsed against.
|
boolean |
isBuiltInPredicate(String name)
INTERNAL: Used to find out if the given predicate name is the
name of a built-in predicate.
|
boolean |
isLoading(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).
|
static final int SUBJECT_IDENTIFIER
static final int SUBJECT_LOCATOR
static final int ITEM_IDENTIFIER
static final int MODULE
TopicMapIF getTopicMap()
LocatorIF resolveQName(QName qname)
void addPrefixBinding(String prefix, 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)
LocatorIF absolutify(String uriref) throws AntlrWrapException
AntlrWrapException
TopicIF getTopicBySubjectIdentifier(String uri) throws AntlrWrapException
AntlrWrapException
TopicIF getTopicBySubjectLocator(String uri) throws AntlrWrapException
AntlrWrapException
TMObjectIF getObjectByItemId(String uri) throws AntlrWrapException
AntlrWrapException
TMObjectIF getObjectByObjectId(String id) throws AntlrWrapException
AntlrWrapException
boolean isLoading(String uri)
boolean isBuiltInPredicate(String name)
void dump()