net.sf.saxon.xqj
Class SaxonXQExpressionContext
java.lang.Object
net.sf.saxon.xqj.SaxonXQExpressionContext
- All Implemented Interfaces:
- XQStaticContext
public class SaxonXQExpressionContext
- extends Object
- implements 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.
SaxonXQExpressionContext
public SaxonXQExpressionContext(XQueryExpression expression)
declareNamespace
public void declareNamespace(String prefix,
String uri)
throws XQException
- Specified by:
declareNamespace
in interface XQStaticContext
- Throws:
XQException
getBaseURI
public String getBaseURI()
- Specified by:
getBaseURI
in interface XQStaticContext
getBindingMode
public int getBindingMode()
- Specified by:
getBindingMode
in interface XQStaticContext
getBoundarySpacePolicy
public int getBoundarySpacePolicy()
- Specified by:
getBoundarySpacePolicy
in interface XQStaticContext
getConstructionMode
public int getConstructionMode()
- Specified by:
getConstructionMode
in interface XQStaticContext
getContextItemStaticType
public XQItemType getContextItemStaticType()
- Specified by:
getContextItemStaticType
in interface XQStaticContext
getCopyNamespacesModeInherit
public int getCopyNamespacesModeInherit()
- Specified by:
getCopyNamespacesModeInherit
in interface XQStaticContext
getCopyNamespacesModePreserve
public int getCopyNamespacesModePreserve()
- Specified by:
getCopyNamespacesModePreserve
in interface XQStaticContext
getDefaultCollation
public String getDefaultCollation()
- Specified by:
getDefaultCollation
in interface XQStaticContext
getDefaultElementTypeNamespace
public String getDefaultElementTypeNamespace()
- Specified by:
getDefaultElementTypeNamespace
in interface XQStaticContext
getDefaultFunctionNamespace
public String getDefaultFunctionNamespace()
- Specified by:
getDefaultFunctionNamespace
in interface XQStaticContext
getDefaultOrderForEmptySequences
public int getDefaultOrderForEmptySequences()
- Specified by:
getDefaultOrderForEmptySequences
in interface XQStaticContext
getHoldability
public int getHoldability()
- Specified by:
getHoldability
in interface XQStaticContext
getNamespacePrefixes
public String[] getNamespacePrefixes()
- Specified by:
getNamespacePrefixes
in interface XQStaticContext
getNamespaceURI
public String getNamespaceURI(String prefix)
throws XQException
- Specified by:
getNamespaceURI
in interface XQStaticContext
- Throws:
XQException
getOrderingMode
public int getOrderingMode()
- Specified by:
getOrderingMode
in interface XQStaticContext
getQueryLanguageTypeAndVersion
public int getQueryLanguageTypeAndVersion()
- Specified by:
getQueryLanguageTypeAndVersion
in interface XQStaticContext
getQueryTimeout
public int getQueryTimeout()
- Specified by:
getQueryTimeout
in interface XQStaticContext
getScrollability
public int getScrollability()
- Specified by:
getScrollability
in interface XQStaticContext
setBaseURI
public void setBaseURI(String baseUri)
throws XQException
- Specified by:
setBaseURI
in interface XQStaticContext
- Throws:
XQException
setBindingMode
public void setBindingMode(int bindingMode)
throws XQException
- Specified by:
setBindingMode
in interface XQStaticContext
- Throws:
XQException
setBoundarySpacePolicy
public void setBoundarySpacePolicy(int policy)
throws XQException
- Specified by:
setBoundarySpacePolicy
in interface XQStaticContext
- Throws:
XQException
setConstructionMode
public void setConstructionMode(int mode)
throws XQException
- Specified by:
setConstructionMode
in interface XQStaticContext
- Throws:
XQException
setContextItemStaticType
public void setContextItemStaticType(XQItemType contextItemType)
throws XQException
- Specified by:
setContextItemStaticType
in interface XQStaticContext
- Throws:
XQException
setCopyNamespacesModeInherit
public void setCopyNamespacesModeInherit(int mode)
throws XQException
- Specified by:
setCopyNamespacesModeInherit
in interface XQStaticContext
- Throws:
XQException
setCopyNamespacesModePreserve
public void setCopyNamespacesModePreserve(int mode)
throws XQException
- Specified by:
setCopyNamespacesModePreserve
in interface XQStaticContext
- Throws:
XQException
setDefaultCollation
public void setDefaultCollation(String uri)
throws XQException
- Specified by:
setDefaultCollation
in interface XQStaticContext
- Throws:
XQException
setDefaultElementTypeNamespace
public void setDefaultElementTypeNamespace(String uri)
throws XQException
- Specified by:
setDefaultElementTypeNamespace
in interface XQStaticContext
- Throws:
XQException
setDefaultFunctionNamespace
public void setDefaultFunctionNamespace(String uri)
throws XQException
- Specified by:
setDefaultFunctionNamespace
in interface XQStaticContext
- Throws:
XQException
setDefaultOrderForEmptySequences
public void setDefaultOrderForEmptySequences(int order)
throws XQException
- Specified by:
setDefaultOrderForEmptySequences
in interface XQStaticContext
- Throws:
XQException
setHoldability
public void setHoldability(int holdability)
throws XQException
- Specified by:
setHoldability
in interface XQStaticContext
- Throws:
XQException
setOrderingMode
public void setOrderingMode(int mode)
throws XQException
- Specified by:
setOrderingMode
in interface XQStaticContext
- Throws:
XQException
setQueryLanguageTypeAndVersion
public void setQueryLanguageTypeAndVersion(int langType)
throws XQException
- Specified by:
setQueryLanguageTypeAndVersion
in interface XQStaticContext
- Throws:
XQException
setQueryTimeout
public void setQueryTimeout(int seconds)
throws XQException
- Specified by:
setQueryTimeout
in interface XQStaticContext
- Throws:
XQException
setScrollability
public void setScrollability(int scrollability)
throws XQException
- Specified by:
setScrollability
in interface XQStaticContext
- Throws:
XQException
Copyright (C) Michael H. Kay. All rights reserved.