com.saxonica.schema.sdoc
Class SchemaElement.XPathStaticContext
java.lang.Object
net.sf.saxon.sxpath.AbstractStaticContext
net.sf.saxon.sxpath.IndependentContext
net.sf.saxon.sxpath.DedicatedStaticContext
com.saxonica.schema.sdoc.SchemaElement.XPathStaticContext
- All Implemented Interfaces:
- Serializable, SourceLocator, Container, StaticContext, NamespaceResolver, XPathStaticContext
- Enclosing class:
- SchemaElement
protected class SchemaElement.XPathStaticContext
- extends DedicatedStaticContext
- See Also:
- Serialized Form
Methods inherited from class net.sf.saxon.sxpath.IndependentContext |
clearAllNamespaces, clearNamespaces, declareNamespace, declareVariable, declareVariable, declareVariable, getContainerGranularity, getExternalVariable, getImportedSchemaNamespaces, getNamespaceResolver, getRequiredContextItemType, getSlotNumber, getStackFrameMap, getURIForPrefix, isAllowUndeclaredVariables, isImportedSchema, iterateExternalVariables, iteratePrefixes, setAllowUndeclaredVariables, setImportedSchemaNamespaces, setNamespaceResolver, setNamespaces, setRequiredContextItemType |
Methods inherited from class net.sf.saxon.sxpath.AbstractStaticContext |
addFunctionLibrary, declareCollation, getBaseURI, getCollation, getColumnNumber, getConfiguration, getDecimalFormatManager, getDefaultCollationName, getDefaultElementNamespace, getDefaultFunctionNamespace, getFunctionLibrary, getHostLanguage, getLineNumber, getLocationMap, getLocationProvider, getNamePool, getPublicId, getSystemId, getXPathLanguageLevel, isAllowedBuiltInType, isInBackwardsCompatibleMode, isSchemaAware, issueWarning, makeEarlyEvaluationContext, setBackwardsCompatibilityMode, setBaseURI, setConfiguration, setDecimalFormatManager, setDefaultElementNamespace, setDefaultFunctionLibrary, setDefaultFunctionNamespace, setFunctionLibrary, setLocationMap, setSchemaAware, setXPathLanguageLevel |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface net.sf.saxon.expr.StaticContext |
getBaseURI, getCollation, getConfiguration, getDecimalFormatManager, getDefaultCollationName, getDefaultElementNamespace, getDefaultFunctionNamespace, getFunctionLibrary, getLineNumber, getLocationMap, getNamePool, getSystemId, getXPathLanguageLevel, isAllowedBuiltInType, isInBackwardsCompatibleMode, isSchemaAware, issueWarning, makeEarlyEvaluationContext |
SchemaElement.XPathStaticContext
public SchemaElement.XPathStaticContext(Configuration config)
getURIForPrefix
public String getURIForPrefix(String prefix)
throws XPathException
- Get the URI for a prefix, using the declared namespaces as
the context for namespace resolution.
This method is provided for use by the XPath parser.
- Specified by:
getURIForPrefix
in interface StaticContext
- Overrides:
getURIForPrefix
in class IndependentContext
- Parameters:
prefix
- The prefix
- Returns:
- the corresponding namespace URI
- Throws:
XPathException
- if the prefix is not declared
bindVariable
public Expression bindVariable(StructuredQName qName)
throws XPathException
- Bind a variable reference appearing within an XPath expression
- Specified by:
bindVariable
in interface StaticContext
- Overrides:
bindVariable
in class IndependentContext
- Parameters:
qName
- the name of the variable
- Returns:
- the resulting variable reference
- Throws:
XPathException
Copyright (c) 2004-2010 Saxonica Limited. All rights reserved.