public class StaticContextForSystemFunctions extends Object
Constructor and Description |
---|
StaticContextForSystemFunctions(Executable exec) |
Modifier and Type | Method and Description |
---|---|
String |
getBaseURI()
Get the Base URI, for resolving any relative URI's used
in the expression.
|
StringCollator |
getCollation(String name)
Get a named collation.
|
CollationMap |
getCollationMap()
Get the collation map in use
|
Configuration |
getConfiguration()
Get the system configuration
|
DecimalFormatManager |
getDecimalFormatManager()
Get a DecimalFormatManager to resolve the names of decimal formats used in calls
to the format-number() function.
|
String |
getDefaultCollationName()
Get the name of the default collation.
|
String |
getDefaultElementNamespace()
Get the default namespace URI for elements and types
Return NamespaceConstant.NULL (that is, the zero-length string) for the non-namespace
|
String |
getDefaultFunctionNamespace()
Get the default function namespace.
|
FunctionLibrary |
getFunctionLibrary()
Get the function library containing all the in-scope functions available in this static
context.
|
int |
getLineNumber()
Get the line number of the expression within that container.
|
LocationMap |
getLocationMap() |
NamePool |
getNamePool()
Get the NamePool used for compiling expressions
|
ItemType |
getRequiredContextItemType()
Get the required type of the context item.
|
String |
getSystemId()
Get the system ID of the container of the expression.
|
DecimalValue |
getXPathLanguageLevel()
Get the XPath language level supported, as a string.
|
boolean |
isAllowedBuiltInType(BuiltInAtomicType type)
Determine whether a built-in type is available in this context.
|
boolean |
isInBackwardsCompatibleMode()
Determine whether Backwards Compatible Mode is used
|
boolean |
isSchemaAware()
Ask whether this static context is schema-aware
|
void |
issueWarning(String s,
SourceLocator locator)
Issue a compile-time warning.
|
XPathContext |
makeEarlyEvaluationContext()
Construct a dynamic context for early evaluation of constant subexpressions
|
void |
setBaseURI(String baseURI)
Set the base URI in the static context
|
void |
setDecimalFormatManager(DecimalFormatManager manager)
Set the DecimalFormatManager used to resolve the names of decimal formats used in calls
to the format-number() function.
|
void |
setDefaultElementNamespace(String uri)
Set the default namespace for elements and types
|
public StaticContextForSystemFunctions(Executable exec)
public Configuration getConfiguration()
public CollationMap getCollationMap()
public boolean isSchemaAware()
public XPathContext makeEarlyEvaluationContext()
public LocationMap getLocationMap()
public void setBaseURI(String baseURI)
baseURI
- the base URI of the expressionpublic String getBaseURI()
public FunctionLibrary getFunctionLibrary()
public StringCollator getCollation(String name)
public String getDefaultCollationName()
public NamePool getNamePool()
public void issueWarning(String s, SourceLocator locator)
public String getSystemId()
public int getLineNumber()
public String getDefaultElementNamespace()
public void setDefaultElementNamespace(String uri)
uri
- the namespace to be used for unprefixed element and type names.
The value "" (or NamespaceConstant.NULL) represents the non-namespacepublic String getDefaultFunctionNamespace()
public DecimalValue getXPathLanguageLevel()
public boolean isInBackwardsCompatibleMode()
public boolean isAllowedBuiltInType(BuiltInAtomicType type)
type
- the supposedly built-in type. This will always be a type in the XS namespace.public void setDecimalFormatManager(DecimalFormatManager manager)
manager
- the decimal format manager for this static context, or null if no named decimal
formats are available in this environment.public ItemType getRequiredContextItemType()
public DecimalFormatManager getDecimalFormatManager()
Copyright (c) 2004-2013 Saxonica Limited. All rights reserved.