public class UseWhenStaticContext extends AbstractStaticContext implements XSLTStaticContext, Container
?????? | ????? |
---|---|
FunctionLibrary |
functionLibrary |
NamespaceResolver |
namespaceContext |
StyleNodeFactory |
nodeFactory |
?????? |
---|
UseWhenStaticContext(Configuration config,
NamespaceResolver namespaceContext)
Create a static context for evaluating use-when expressions
|
?????? | ????? |
---|---|
VariableReference |
bindVariable(StructuredQName qName)
Bind a variable used in this element to the XSLVariable element in which it is declared
|
StringCollator |
getCollation(java.lang.String name)
Get a named collation.
|
java.lang.String |
getDefaultCollationName()
Get the name of the default collation.
|
java.lang.String |
getDefaultFunctionNamespace()
Get the default function namespace
|
FunctionLibrary |
getFunctionLibrary()
Get the function library containing all the in-scope functions available in this static
context
|
java.util.Set |
getImportedSchemaNamespaces()
Get the set of imported schemas
|
NamespaceResolver |
getNamespaceResolver()
Get a namespace resolver to resolve the namespaces declared in this static context.
|
java.lang.String |
getSystemId()
Get the System ID of the container of the expression.
|
java.lang.String |
getURIForPrefix(java.lang.String prefix)
Get the URI for a namespace prefix.
|
boolean |
isAllowedBuiltInType(BuiltInAtomicType type)
Determine whether a built-in type is available in this context.
|
boolean |
isElementAvailable(java.lang.String qname)
Determine if an extension element is available
|
boolean |
isImportedSchema(java.lang.String namespace)
Determine whether a Schema for a given target namespace has been imported.
|
boolean |
isInBackwardsCompatibleMode()
Determine whether Backwards Compatible Mode is used
|
void |
issueWarning(java.lang.String s,
javax.xml.transform.SourceLocator locator)
Issue a compile-time warning
|
addFunctionLibrary, declareCollation, getBaseURI, getColumnNumber, getConfiguration, getDefaultElementNamespace, getExecutable, getHostLanguage, getLineNumber, getLocationMap, getLocationProvider, getNamePool, getPublicId, makeEarlyEvaluationContext, replaceSubExpression, setBackwardsCompatibilityMode, setBaseURI, setConfiguration, setDefaultElementNamespace, setDefaultFunctionLibrary, setDefaultFunctionNamespace, setFunctionLibrary, setLocationMap
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getBaseURI, getConfiguration, getDefaultElementNamespace, getLineNumber, getLocationMap, getNamePool, makeEarlyEvaluationContext
getExecutable, getHostLanguage, getLocationProvider, replaceSubExpression
public NamespaceResolver namespaceContext
public FunctionLibrary functionLibrary
public StyleNodeFactory nodeFactory
public UseWhenStaticContext(Configuration config, NamespaceResolver namespaceContext)
config
- the Saxon configurationnamespaceContext
- the namespace context in which the use-when expression appearspublic void issueWarning(java.lang.String s, javax.xml.transform.SourceLocator locator)
issueWarning
???? StaticContext
issueWarning
??? AbstractStaticContext
s
- The warning message. This should not contain any prefix such as "Warning".locator
- the location of the construct in question. May be null.public java.lang.String getSystemId()
getSystemId
???? javax.xml.transform.SourceLocator
getSystemId
???? StaticContext
getSystemId
??? AbstractStaticContext
public java.lang.String getURIForPrefix(java.lang.String prefix) throws XPathException
getURIForPrefix
???? StaticContext
prefix
- The prefixXPathException
- if the prefix is not declaredpublic VariableReference bindVariable(StructuredQName qName) throws XPathException
bindVariable
???? StaticContext
qName
- the name of the variableXPathException
public FunctionLibrary getFunctionLibrary()
getFunctionLibrary
???? StaticContext
getFunctionLibrary
??? AbstractStaticContext
public StringCollator getCollation(java.lang.String name)
getCollation
???? StaticContext
getCollation
??? AbstractStaticContext
name
- The name of the required collation. Supply null to get the default collation.public java.lang.String getDefaultCollationName()
getDefaultCollationName
???? StaticContext
getDefaultCollationName
??? AbstractStaticContext
public java.lang.String getDefaultFunctionNamespace()
getDefaultFunctionNamespace
???? StaticContext
getDefaultFunctionNamespace
??? AbstractStaticContext
public boolean isInBackwardsCompatibleMode()
isInBackwardsCompatibleMode
???? StaticContext
isInBackwardsCompatibleMode
??? AbstractStaticContext
public boolean isImportedSchema(java.lang.String namespace)
isImportedSchema
???? StaticContext
namespace
- the target namespace in questionpublic java.util.Set getImportedSchemaNamespaces()
getImportedSchemaNamespaces
???? StaticContext
public boolean isAllowedBuiltInType(BuiltInAtomicType type)
isAllowedBuiltInType
???? StaticContext
isAllowedBuiltInType
??? AbstractStaticContext
type
- the supposedly built-in type. This will always be a type in the
XS or XDT namespace.public NamespaceResolver getNamespaceResolver()
getNamespaceResolver
???? StaticContext
public boolean isElementAvailable(java.lang.String qname) throws XPathException
isElementAvailable
???? XSLTStaticContext
XPathException
- if the name is invalid or the prefix is not declared