|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface XPathStaticContext
This interface defines methods that must be provided when Saxon's free-standing XPath API is used.
The default implementation of this interface is IndependentContext
, and
that implementation should be adequate for most purposes; but for extra customization, a user-written
implementation of this interface may be used instead.
Method Summary | |
---|---|
XPathVariable |
declareVariable(QNameValue qname)
Declare a variable. |
XPathVariable |
declareVariable(String namespaceURI,
String localName)
Declare a variable. |
SlotManager |
getStackFrameMap()
Get a Stack Frame Map containing definitions of all the declared variables. |
void |
setDefaultElementNamespace(String uri)
Set the default namespace for elements and types |
void |
setNamespaceResolver(NamespaceResolver resolver)
Set an external namespace resolver. |
Method Detail |
---|
void setDefaultElementNamespace(String uri)
uri
- The namespace to be used to qualify unprefixed element names and type names appearing
in the XPath expression.void setNamespaceResolver(NamespaceResolver resolver)
resolver
- the external namespace resolverXPathVariable declareVariable(QNameValue qname)
XPathEvaluator.declareVariable(java.lang.String, java.lang.String)
method.
qname
- The name of the variable
XPathVariable declareVariable(String namespaceURI, String localName)
XPathEvaluator.declareVariable(java.lang.String, java.lang.String)
method.
namespaceURI
- The namespace URI of the name of the variable. Supply "" to represent
names in no namespace (null is also accepted)localName
- The local part of the name of the variable (an NCName)
SlotManager getStackFrameMap()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |