|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A StaticContext contains the information needed while an expression or pattern is being parsed. The information is also sometimes needed at run-time.
Method Summary | |
boolean |
allowsKeyFunction()
Determine whether the key() function is permmitted in this context |
Binding |
bindVariable(int fingerprint)
Bind a variable to an object that can be used to refer to it |
boolean |
forwardsCompatibleModeIsEnabled()
Determine whether forwards-compatible mode is enabled |
int |
getFingerprint(java.lang.String qname,
boolean useDefault)
Get a fingerprint for a name, using this as the context for namespace resolution |
int |
getLineNumber()
Get the line number of the expression within its containing entity Returns -1 if no line number is available |
Function |
getStyleSheetFunction(int fingerprint)
|
java.lang.String |
getSystemId()
Get the Base URI of the container of the expression |
java.lang.String |
getURIForPrefix(java.lang.String prefix)
Get the URI for a prefix, using this Element as the context for namespace resolution |
boolean |
isElementAvailable(java.lang.String qname)
Determine if an extension element is available |
boolean |
isExtensionNamespace(short uriCode)
Determine whether a given URI code identifies an extension element namespace |
boolean |
isFunctionAvailable(java.lang.String qname)
Determine if a function is available |
int |
makeNameCode(java.lang.String qname,
boolean useDefault)
Make a NameCode, using this Element as the context for namespace resolution |
NamespaceTest |
makeNamespaceTest(short nodeType,
java.lang.String prefix)
Make a NamespaceTest, using this element as the context for namespace resolution |
NameTest |
makeNameTest(short nodeType,
java.lang.String qname,
boolean useDefault)
Make a NameTest, using this element as the context for namespace resolution |
StaticContext |
makeRuntimeContext(NamePool pool)
Copy the context with a different namepool |
Method Detail |
public StaticContext makeRuntimeContext(NamePool pool)
public java.lang.String getSystemId()
public int getLineNumber()
public java.lang.String getURIForPrefix(java.lang.String prefix) throws org.xml.sax.SAXException
prefix
- The prefixpublic int makeNameCode(java.lang.String qname, boolean useDefault) throws org.xml.sax.SAXException
qname
- The name as written, in the form "[prefix:]localname"public int getFingerprint(java.lang.String qname, boolean useDefault) throws org.xml.sax.SAXException
qname
- The name as written, in the form "[prefix:]localname"public NameTest makeNameTest(short nodeType, java.lang.String qname, boolean useDefault) throws org.xml.sax.SAXException
public NamespaceTest makeNamespaceTest(short nodeType, java.lang.String prefix) throws org.xml.sax.SAXException
public Binding bindVariable(int fingerprint) throws org.xml.sax.SAXException
fingerprint
- The fingerprint of the variable nameorg.xml.sax.SAXException
- if the variable has not been declared, or if the context
does not allow the use of variablespublic boolean isExtensionNamespace(short uriCode) throws org.xml.sax.SAXException
public boolean forwardsCompatibleModeIsEnabled() throws org.xml.sax.SAXException
public Function getStyleSheetFunction(int fingerprint) throws org.xml.sax.SAXException
public boolean isElementAvailable(java.lang.String qname) throws org.xml.sax.SAXException
public boolean isFunctionAvailable(java.lang.String qname) throws org.xml.sax.SAXException
public boolean allowsKeyFunction()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |