net.sf.saxon.xqj
Class SaxonXQExpressionContext
java.lang.Object
   net.sf.saxon.xqj.SaxonXQExpressionContext
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:
- declareNamespacein interface- XQStaticContext
 
- 
- Throws:
- XQException
 
getBaseURI
public String getBaseURI()
- 
- Specified by:
- getBaseURIin interface- XQStaticContext
 
- 
 
getBindingMode
public int getBindingMode()
- 
- Specified by:
- getBindingModein interface- XQStaticContext
 
- 
 
getBoundarySpacePolicy
public int getBoundarySpacePolicy()
- 
- Specified by:
- getBoundarySpacePolicyin interface- XQStaticContext
 
- 
 
getConstructionMode
public int getConstructionMode()
- 
- Specified by:
- getConstructionModein interface- XQStaticContext
 
- 
 
getContextItemStaticType
public XQItemType getContextItemStaticType()
- 
- Specified by:
- getContextItemStaticTypein interface- XQStaticContext
 
- 
 
getCopyNamespacesModeInherit
public int getCopyNamespacesModeInherit()
- 
- Specified by:
- getCopyNamespacesModeInheritin interface- XQStaticContext
 
- 
 
getCopyNamespacesModePreserve
public int getCopyNamespacesModePreserve()
- 
- Specified by:
- getCopyNamespacesModePreservein interface- XQStaticContext
 
- 
 
getDefaultCollation
public String getDefaultCollation()
- 
- Specified by:
- getDefaultCollationin interface- XQStaticContext
 
- 
 
getDefaultElementTypeNamespace
public String getDefaultElementTypeNamespace()
- 
- Specified by:
- getDefaultElementTypeNamespacein interface- XQStaticContext
 
- 
 
getDefaultFunctionNamespace
public String getDefaultFunctionNamespace()
- 
- Specified by:
- getDefaultFunctionNamespacein interface- XQStaticContext
 
- 
 
getDefaultOrderForEmptySequences
public int getDefaultOrderForEmptySequences()
- 
- Specified by:
- getDefaultOrderForEmptySequencesin interface- XQStaticContext
 
- 
 
getHoldability
public int getHoldability()
- 
- Specified by:
- getHoldabilityin interface- XQStaticContext
 
- 
 
getNamespacePrefixes
public String[] getNamespacePrefixes()
- 
- Specified by:
- getNamespacePrefixesin interface- XQStaticContext
 
- 
 
getNamespaceURI
public String getNamespaceURI(String prefix)
                       throws XQException
- 
- Specified by:
- getNamespaceURIin interface- XQStaticContext
 
- 
- Throws:
- XQException
 
getOrderingMode
public int getOrderingMode()
- 
- Specified by:
- getOrderingModein interface- XQStaticContext
 
- 
 
getQueryLanguageTypeAndVersion
public int getQueryLanguageTypeAndVersion()
- 
- Specified by:
- getQueryLanguageTypeAndVersionin interface- XQStaticContext
 
- 
 
getQueryTimeout
public int getQueryTimeout()
- 
- Specified by:
- getQueryTimeoutin interface- XQStaticContext
 
- 
 
getScrollability
public int getScrollability()
- 
- Specified by:
- getScrollabilityin interface- XQStaticContext
 
- 
 
setBaseURI
public void setBaseURI(String baseUri)
                throws XQException
- 
- Specified by:
- setBaseURIin interface- XQStaticContext
 
- 
- Throws:
- XQException
 
setBindingMode
public void setBindingMode(int bindingMode)
                    throws XQException
- 
- Specified by:
- setBindingModein interface- XQStaticContext
 
- 
- Throws:
- XQException
 
setBoundarySpacePolicy
public void setBoundarySpacePolicy(int policy)
                            throws XQException
- 
- Specified by:
- setBoundarySpacePolicyin interface- XQStaticContext
 
- 
- Throws:
- XQException
 
setConstructionMode
public void setConstructionMode(int mode)
                         throws XQException
- 
- Specified by:
- setConstructionModein interface- XQStaticContext
 
- 
- Throws:
- XQException
 
setContextItemStaticType
public void setContextItemStaticType(XQItemType contextItemType)
                              throws XQException
- 
- Specified by:
- setContextItemStaticTypein interface- XQStaticContext
 
- 
- Throws:
- XQException
 
setCopyNamespacesModeInherit
public void setCopyNamespacesModeInherit(int mode)
                                  throws XQException
- 
- Specified by:
- setCopyNamespacesModeInheritin interface- XQStaticContext
 
- 
- Throws:
- XQException
 
setCopyNamespacesModePreserve
public void setCopyNamespacesModePreserve(int mode)
                                   throws XQException
- 
- Specified by:
- setCopyNamespacesModePreservein interface- XQStaticContext
 
- 
- Throws:
- XQException
 
setDefaultCollation
public void setDefaultCollation(String uri)
                         throws XQException
- 
- Specified by:
- setDefaultCollationin interface- XQStaticContext
 
- 
- Throws:
- XQException
 
setDefaultElementTypeNamespace
public void setDefaultElementTypeNamespace(String uri)
                                    throws XQException
- 
- Specified by:
- setDefaultElementTypeNamespacein interface- XQStaticContext
 
- 
- Throws:
- XQException
 
setDefaultFunctionNamespace
public void setDefaultFunctionNamespace(String uri)
                                 throws XQException
- 
- Specified by:
- setDefaultFunctionNamespacein interface- XQStaticContext
 
- 
- Throws:
- XQException
 
setDefaultOrderForEmptySequences
public void setDefaultOrderForEmptySequences(int order)
                                      throws XQException
- 
- Specified by:
- setDefaultOrderForEmptySequencesin interface- XQStaticContext
 
- 
- Throws:
- XQException
 
setHoldability
public void setHoldability(int holdability)
                    throws XQException
- 
- Specified by:
- setHoldabilityin interface- XQStaticContext
 
- 
- Throws:
- XQException
 
setOrderingMode
public void setOrderingMode(int mode)
                     throws XQException
- 
- Specified by:
- setOrderingModein interface- XQStaticContext
 
- 
- Throws:
- XQException
 
setQueryLanguageTypeAndVersion
public void setQueryLanguageTypeAndVersion(int langType)
                                    throws XQException
- 
- Specified by:
- setQueryLanguageTypeAndVersionin interface- XQStaticContext
 
- 
- Throws:
- XQException
 
setQueryTimeout
public void setQueryTimeout(int seconds)
                     throws XQException
- 
- Specified by:
- setQueryTimeoutin interface- XQStaticContext
 
- 
- Throws:
- XQException
 
setScrollability
public void setScrollability(int scrollability)
                      throws XQException
- 
- Specified by:
- setScrollabilityin interface- XQStaticContext
 
- 
- Throws:
- XQException
 
Copyright (C) Michael H. Kay. All rights reserved.