|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.icl.saxon.style.ExpressionContext
An ExpressionContext represents the context for an XPath expression written in the stylesheet.
| Constructor Summary | |
ExpressionContext(StyleElement styleElement)
|
|
| 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 |
java.lang.String |
getBaseURI()
Get the Base URI of the element containing the expression, for resolving any relative URI's used in the expression. |
java.lang.Class |
getExternalJavaClass(java.lang.String uri)
Get an external Java class corresponding to a given namespace prefix, if there is one. |
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 System ID of the entity containing the expression (used for diagnostics) |
java.lang.String |
getURIForPrefix(java.lang.String prefix)
Get the URI for a prefix, using this Element as the context for namespace resolution |
java.lang.String |
getVersion()
Get the effective XSLT version in this region of the stylesheet |
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)
Create a context for parsing XPath expressions at runtime, using this styelsheet element for namespace declarations, variables, etc, but using the runtime NamePool |
java.lang.String |
toString()
String representation for diagnostics |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public ExpressionContext(StyleElement styleElement)
| Method Detail |
public StaticContext makeRuntimeContext(NamePool pool)
makeRuntimeContext in interface StaticContextpublic java.lang.String getSystemId()
getSystemId in interface StaticContextpublic int getLineNumber()
getLineNumber in interface StaticContextpublic java.lang.String getBaseURI()
getBaseURI in interface StaticContext
public java.lang.String getURIForPrefix(java.lang.String prefix)
throws XPathException
getURIForPrefix in interface StaticContextprefix - The prefix
XPathException
public final int makeNameCode(java.lang.String qname,
boolean useDefault)
throws XPathException
makeNameCode in interface StaticContextqname - The name as written, in the form "[prefix:]localname"
XPathException
public int getFingerprint(java.lang.String qname,
boolean useDefault)
throws XPathException
getFingerprint in interface StaticContextqname - The name as written, in the form "[prefix:]localname"
XPathException
public NameTest makeNameTest(short nodeType,
java.lang.String qname,
boolean useDefault)
throws XPathException
makeNameTest in interface StaticContextXPathException
public NamespaceTest makeNamespaceTest(short nodeType,
java.lang.String prefix)
throws XPathException
makeNamespaceTest in interface StaticContextXPathException
public Binding bindVariable(int fingerprint)
throws XPathException
bindVariable in interface StaticContextfingerprint - The fingerprint of the variable name
XPathException - if the variable has not been declared
public boolean isExtensionNamespace(short uriCode)
throws XPathException
isExtensionNamespace in interface StaticContextXPathException
public boolean forwardsCompatibleModeIsEnabled()
throws XPathException
forwardsCompatibleModeIsEnabled in interface StaticContextXPathException
public Function getStyleSheetFunction(int fingerprint)
throws XPathException
getStyleSheetFunction in interface StaticContextXPathException
public java.lang.Class getExternalJavaClass(java.lang.String uri)
throws TransformerException
getExternalJavaClass in interface StaticContexturi - The namespace URI corresponding to the prefix used in the function call.
TransformerException - if the class is found, but cannot be loaded.
public boolean isElementAvailable(java.lang.String qname)
throws XPathException
isElementAvailable in interface StaticContextXPathException - if the name is invalid or the prefix is not declared
public boolean isFunctionAvailable(java.lang.String qname)
throws XPathException
isFunctionAvailable in interface StaticContextXPathExceptionpublic boolean allowsKeyFunction()
allowsKeyFunction in interface StaticContextpublic java.lang.String getVersion()
getVersion in interface StaticContextpublic java.lang.String toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||