Container
, java.io.Serializable
, javax.xml.transform.SourceLocator
, StaticContext
IndependentContext
public interface XPathStaticContext extends StaticContext, Container
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.Modifier and Type | Method | Description |
---|---|---|
XPathVariable |
declareVariable(java.lang.String namespaceURI,
java.lang.String localName) |
Declare a variable.
|
XPathVariable |
declareVariable(QNameValue qname) |
Declare a variable.
|
Executable |
getExecutable() |
Get the executable associated with this static context.
|
SlotManager |
getStackFrameMap() |
Get a Stack Frame Map containing definitions of all the declared variables.
|
void |
setDefaultElementNamespace(java.lang.String uri) |
Set the default namespace for elements and types
|
void |
setNamespaceResolver(NamespaceResolver resolver) |
Set an external namespace resolver.
|
getHostLanguage, getLocationProvider, replaceSubExpression
getColumnNumber, getLineNumber, getPublicId, getSystemId
bindVariable, getBaseURI, getCollation, getConfiguration, getDefaultCollationName, getDefaultElementNamespace, getDefaultFunctionNamespace, getFunctionLibrary, getImportedSchemaNamespaces, getLineNumber, getLocationMap, getNamePool, getNamespaceResolver, getSystemId, getURIForPrefix, isAllowedBuiltInType, isImportedSchema, isInBackwardsCompatibleMode, issueWarning, makeEarlyEvaluationContext
Executable getExecutable()
getExecutable
in interface Container
void setDefaultElementNamespace(java.lang.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 variableXPathVariable declareVariable(java.lang.String namespaceURI, java.lang.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()