net.sf.saxon.xqj
Class SaxonXQExpressionContext
java.lang.Object
net.sf.saxon.xqj.SaxonXQExpressionContext
- All Implemented Interfaces:
- javax.xml.xquery.XQStaticContext
public class SaxonXQExpressionContext
- extends java.lang.Object
- implements javax.xml.xquery.XQStaticContext
This is a read-only implementation of the XQStaticContext interface that provides information about
the static context options selected within the query prolog of a compiled expression.
Note that it only provides information about the main module of the query, library modules have
a different static context and this is not available via the XQJ API.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SaxonXQExpressionContext
public SaxonXQExpressionContext(XQueryExpression expression)
declareNamespace
public void declareNamespace(java.lang.String prefix,
java.lang.String uri)
throws javax.xml.xquery.XQException
- Specified by:
declareNamespace
in interface javax.xml.xquery.XQStaticContext
- Throws:
javax.xml.xquery.XQException
getBaseURI
public java.lang.String getBaseURI()
- Specified by:
getBaseURI
in interface javax.xml.xquery.XQStaticContext
getBindingMode
public int getBindingMode()
- Specified by:
getBindingMode
in interface javax.xml.xquery.XQStaticContext
getBoundarySpacePolicy
public int getBoundarySpacePolicy()
- Specified by:
getBoundarySpacePolicy
in interface javax.xml.xquery.XQStaticContext
getConstructionMode
public int getConstructionMode()
- Specified by:
getConstructionMode
in interface javax.xml.xquery.XQStaticContext
getContextItemStaticType
public javax.xml.xquery.XQItemType getContextItemStaticType()
- Specified by:
getContextItemStaticType
in interface javax.xml.xquery.XQStaticContext
getCopyNamespacesModeInherit
public int getCopyNamespacesModeInherit()
- Specified by:
getCopyNamespacesModeInherit
in interface javax.xml.xquery.XQStaticContext
getCopyNamespacesModePreserve
public int getCopyNamespacesModePreserve()
- Specified by:
getCopyNamespacesModePreserve
in interface javax.xml.xquery.XQStaticContext
getDefaultCollation
public java.lang.String getDefaultCollation()
- Specified by:
getDefaultCollation
in interface javax.xml.xquery.XQStaticContext
getDefaultElementTypeNamespace
public java.lang.String getDefaultElementTypeNamespace()
- Specified by:
getDefaultElementTypeNamespace
in interface javax.xml.xquery.XQStaticContext
getDefaultFunctionNamespace
public java.lang.String getDefaultFunctionNamespace()
- Specified by:
getDefaultFunctionNamespace
in interface javax.xml.xquery.XQStaticContext
getDefaultOrderForEmptySequences
public int getDefaultOrderForEmptySequences()
- Specified by:
getDefaultOrderForEmptySequences
in interface javax.xml.xquery.XQStaticContext
getHoldability
public int getHoldability()
- Specified by:
getHoldability
in interface javax.xml.xquery.XQStaticContext
getNamespacePrefixes
public java.lang.String[] getNamespacePrefixes()
- Specified by:
getNamespacePrefixes
in interface javax.xml.xquery.XQStaticContext
getNamespaceURI
public java.lang.String getNamespaceURI(java.lang.String prefix)
throws javax.xml.xquery.XQException
- Specified by:
getNamespaceURI
in interface javax.xml.xquery.XQStaticContext
- Throws:
javax.xml.xquery.XQException
getOrderingMode
public int getOrderingMode()
- Specified by:
getOrderingMode
in interface javax.xml.xquery.XQStaticContext
getQueryLanguageTypeAndVersion
public int getQueryLanguageTypeAndVersion()
- Specified by:
getQueryLanguageTypeAndVersion
in interface javax.xml.xquery.XQStaticContext
getQueryTimeout
public int getQueryTimeout()
- Specified by:
getQueryTimeout
in interface javax.xml.xquery.XQStaticContext
getScrollability
public int getScrollability()
- Specified by:
getScrollability
in interface javax.xml.xquery.XQStaticContext
setBaseURI
public void setBaseURI(java.lang.String baseUri)
throws javax.xml.xquery.XQException
- Specified by:
setBaseURI
in interface javax.xml.xquery.XQStaticContext
- Throws:
javax.xml.xquery.XQException
setBindingMode
public void setBindingMode(int bindingMode)
throws javax.xml.xquery.XQException
- Specified by:
setBindingMode
in interface javax.xml.xquery.XQStaticContext
- Throws:
javax.xml.xquery.XQException
setBoundarySpacePolicy
public void setBoundarySpacePolicy(int policy)
throws javax.xml.xquery.XQException
- Specified by:
setBoundarySpacePolicy
in interface javax.xml.xquery.XQStaticContext
- Throws:
javax.xml.xquery.XQException
setConstructionMode
public void setConstructionMode(int mode)
throws javax.xml.xquery.XQException
- Specified by:
setConstructionMode
in interface javax.xml.xquery.XQStaticContext
- Throws:
javax.xml.xquery.XQException
setContextItemStaticType
public void setContextItemStaticType(javax.xml.xquery.XQItemType contextItemType)
- Specified by:
setContextItemStaticType
in interface javax.xml.xquery.XQStaticContext
setCopyNamespacesModeInherit
public void setCopyNamespacesModeInherit(int mode)
throws javax.xml.xquery.XQException
- Specified by:
setCopyNamespacesModeInherit
in interface javax.xml.xquery.XQStaticContext
- Throws:
javax.xml.xquery.XQException
setCopyNamespacesModePreserve
public void setCopyNamespacesModePreserve(int mode)
throws javax.xml.xquery.XQException
- Specified by:
setCopyNamespacesModePreserve
in interface javax.xml.xquery.XQStaticContext
- Throws:
javax.xml.xquery.XQException
setDefaultCollation
public void setDefaultCollation(java.lang.String uri)
throws javax.xml.xquery.XQException
- Specified by:
setDefaultCollation
in interface javax.xml.xquery.XQStaticContext
- Throws:
javax.xml.xquery.XQException
setDefaultElementTypeNamespace
public void setDefaultElementTypeNamespace(java.lang.String uri)
throws javax.xml.xquery.XQException
- Specified by:
setDefaultElementTypeNamespace
in interface javax.xml.xquery.XQStaticContext
- Throws:
javax.xml.xquery.XQException
setDefaultFunctionNamespace
public void setDefaultFunctionNamespace(java.lang.String uri)
throws javax.xml.xquery.XQException
- Specified by:
setDefaultFunctionNamespace
in interface javax.xml.xquery.XQStaticContext
- Throws:
javax.xml.xquery.XQException
setDefaultOrderForEmptySequences
public void setDefaultOrderForEmptySequences(int order)
throws javax.xml.xquery.XQException
- Specified by:
setDefaultOrderForEmptySequences
in interface javax.xml.xquery.XQStaticContext
- Throws:
javax.xml.xquery.XQException
setHoldability
public void setHoldability(int holdability)
throws javax.xml.xquery.XQException
- Specified by:
setHoldability
in interface javax.xml.xquery.XQStaticContext
- Throws:
javax.xml.xquery.XQException
setOrderingMode
public void setOrderingMode(int mode)
throws javax.xml.xquery.XQException
- Specified by:
setOrderingMode
in interface javax.xml.xquery.XQStaticContext
- Throws:
javax.xml.xquery.XQException
setQueryLanguageTypeAndVersion
public void setQueryLanguageTypeAndVersion(int langType)
throws javax.xml.xquery.XQException
- Specified by:
setQueryLanguageTypeAndVersion
in interface javax.xml.xquery.XQStaticContext
- Throws:
javax.xml.xquery.XQException
setQueryTimeout
public void setQueryTimeout(int seconds)
throws javax.xml.xquery.XQException
- Specified by:
setQueryTimeout
in interface javax.xml.xquery.XQStaticContext
- Throws:
javax.xml.xquery.XQException
setScrollability
public void setScrollability(int scrollability)
throws javax.xml.xquery.XQException
- Specified by:
setScrollability
in interface javax.xml.xquery.XQStaticContext
- Throws:
javax.xml.xquery.XQException