net.sf.saxon.xpath
public class JAXPXPathStaticContext extends AbstractStaticContext implements StaticContext, NamespaceResolver, Container
Constructor Summary | |
---|---|
JAXPXPathStaticContext(Configuration config)
Create a StandaloneContext using a specific Configuration. |
Method Summary | |
---|---|
Expression | bindVariable(StructuredQName qName)
Bind a variable used in an XPath Expression to the XSLVariable element in which it is declared.
|
int | getContainerGranularity()
Get the granularity of the container. |
Set | getImportedSchemaNamespaces()
Get the set of imported schemas
|
NamespaceContext | getNamespaceContext()
Get the NamespaceContext that was set using |
NamespaceResolver | getNamespaceResolver() |
SlotManager | getStackFrameMap()
Get the stack frame map containing the slot number allocations for the variables declared
in this static context |
String | getURIForPrefix(String prefix)
Get the URI for a prefix, using the declared namespaces as
the context for namespace resolution. |
String | getURIForPrefix(String prefix, boolean useDefault)
Get the namespace URI corresponding to a given prefix. |
XPathFunctionResolver | getXPathFunctionResolver() |
XPathVariableResolver | getXPathVariableResolver()
Get the XPathVariableResolver |
void | importSchema(Source source)
Import a schema. |
boolean | isImportedSchema(String namespace)
Determine whether a Schema for a given target namespace has been imported. |
Iterator | iteratePrefixes()
Get an iterator over all the prefixes declared in this namespace context. |
void | setNamespaceContext(NamespaceContext context)
Supply the NamespaceContext used to resolve namespaces. |
void | setXPathFunctionResolver(XPathFunctionResolver xPathFunctionResolver) |
void | setXPathVariableResolver(XPathVariableResolver resolver)
Set an XPathVariableResolver. |
Parameters: config the Configuration. For schema-aware XPath expressions, this must be an EnterpriseConfiguration.
Parameters: qName
Throws: XPathException if no VariableResolver has been supplied.
Returns: 0 for a temporary container created during parsing; 1 for a container that operates at the level of an XPath expression; 2 for a container at the level of a global function or template
Returns: a Set, the set of URIs representing the names of imported schemas
Parameters: prefix The prefix
Throws: net.sf.saxon.trans.XPathException if the prefix is not declared
Parameters: prefix the namespace prefix useDefault true if the default namespace for elements and types is to be used when the prefix is ""
Returns: the uri for the namespace, or null if the prefix is not in scope. Return "" if the prefix maps to the null namespace.
Parameters: source A Source object identifying the schema document to be loaded
Throws: net.sf.saxon.type.SchemaException if the schema contained in this document is invalid UnsupportedOperationException if the configuration is not schema-aware
Returns: true if schema components for the given namespace have been imported into the schema-aware configuration
Returns: an iterator over all the inscope namespace prefixes, if available
Throws: UnsupportedOperationException if the NamespaceContext object is not a NamespaceResolver.
Parameters: resolver A JAXP 1.3 XPathVariableResolver