|
MXQuery 0.6.0 API Documentation - Copyright 2006-2009 ETH Zurich | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectch.ethz.mxquery.contextConfig.Context
public final class Context
This class represents a unified context implementation, covering XQuery static and dynamic contexts as well as MXQuery-specific additions Context nesting/scoping works as follows: 1) A singleton "global" context for all instances of MXQuery within an JVM 2) A "root" context for each compiled query/exposed module 3) nested contexts for lexical scopes The "global" context carries the - built-in functions - default settings for static context values - the well-known and default namespaces - the dictionary of all user-defined types A root context carries the - user-defined functions - the store set - the collections - the prolog settings of the static context
Field Summary | |
---|---|
static java.lang.String |
ANONYM_VARIABLE_PREFIX
|
static java.lang.String |
ANONYM_VARIABLE_URI
|
static QName |
CONTEXT_ITEM
|
static java.lang.String |
DEFAULT_COLLECTION_URI
|
static int |
DTD_VALIDATION
|
Location |
location
|
static int |
NO_VALIDATION
|
static int |
NONVALIDATED_INPUT_MODE_DOM
|
static int |
NONVALIDATED_INPUT_MODE_SAX
|
static int |
NONVALIDATED_INPUT_MODE_SAX_TIDY
|
static int |
NONVALIDATED_INPUT_MODE_STAX
|
static int |
NONVALIDATED_INPUT_MODE_XPP
Choice of input parser |
static java.lang.String |
PARSER_TYPE
|
static int |
SCHEMA_VALIDATION_LAX
|
static int |
SCHEMA_VALIDATION_STRICT
|
Fields inherited from interface ch.ethz.mxquery.contextConfig.XQStaticContext |
---|
CODEPOINT_COLLATION_URI, COPY_MODE_INHERIT, COPY_MODE_NO_INHERIT, COPY_MODE_NO_PRESERVE, COPY_MODE_PRESERVE, NS_ERR, NS_XML, NS_XMLNS, ORDER_GREATEST, ORDER_LEAST, ORDERED, PRESERVE, REVALIDATION_LAX, REVALIDATION_SKIP, REVALIDATION_STRICT, STRIP, UNORDERED, URI_ERR, URI_FN, URI_LOCAL, URI_XDT, URI_XML, URI_XMLNS, URI_XS, URI_XSI |
Constructor Summary | |
---|---|
Context()
Creates a new root context with a separate store set |
|
Context(Context parent)
Creates a new context with the given parent |
|
Context(Context parent,
StoreSet stores)
Create a new context with the given parent and the given store set |
Method Summary | |
---|---|
java.lang.String |
addAnonymousNamespace(java.lang.String uri)
This methods adds a new namespace to the context and returns the prefix (if the namespace already exists) or creates an anonymous namespace just for internal use |
void |
addFunction(Function function)
Adds a function to the context |
void |
addFunction(Function function,
boolean checkExistence,
boolean external)
Adds a function to the context |
void |
addModuleContext(XQStaticContext modCtx)
Adds an context to the list of module contexts |
void |
addModuleLocation(java.lang.String moduleNS_URI,
java.lang.String location)
Add the locations URI where the contents of a module identified by the namespace moduleNS_URI can be found |
void |
addNamespace(Namespace ns)
Add a namespace mapping. |
void |
addNamespace(java.lang.String prefix,
java.lang.String uri)
Add a prefix/namespace mapping. |
void |
addSchemaLocation(java.lang.String schemaURI,
java.lang.String schemaLocation)
|
boolean |
addTargetNamespace(java.lang.String targetNamespace)
Adds a targetNamespace to the current context |
void |
bindVariableValue(QName qname,
XDMIterator iter)
Bind the value of this variable directly to XDM instance generated by the iterator |
boolean |
checkVariable(QName qname)
Check if the variable is defined |
void |
clearModuleContexts()
|
void |
clearModuleLocation()
Clear this list of locations mapping between module identifiers and locations |
boolean |
containsTargetNamespace(java.lang.String targetNamespace)
|
Context |
copy()
|
void |
exposeModule()
|
void |
flattenVariablesFrom(QName[] fsVars,
Context innermostContext)
|
java.util.Hashtable |
getAllNamespaces()
|
java.util.Vector |
getAllNsURI()
|
java.util.Hashtable |
getAllVariables()
|
java.lang.String |
getBaseURI()
Get the base URI. |
Set |
getCollations()
Get the statically known collations |
java.lang.String |
getConstructionMode()
Gets the construction mode of the Context |
VariableHolder |
getContextItem()
|
boolean |
getCopyNamespacesInheritMode()
Returns which Inherit setting of the copy namespace mode is set |
boolean |
getCopyNamespacesPreserveMode()
Returns which Preserve setting of the copy namespace mode is set |
MXQueryDateTime |
getCurrentTime()
Get the "current" time (the time that was current when XQDynamicContext.setCurrentTime(MXQueryDateTime) was called). |
MXQueryDayTimeDuration |
getCurrentTimeZone()
Get the "current" time zone (at the time that was current when XQDynamicContext.setCurrentTime(MXQueryDateTime) was called). |
java.lang.String |
getDefaultCollation()
Get the default collation |
java.lang.String |
getDefaultElementNamespace()
Gets the defaultElementNamespace attribute of the Context object |
java.lang.String |
getDefaultElementPrefix()
Returns the default function prefix, which can be an anonymous prefix |
java.lang.String |
getDefaultFunctionNamespace()
Gets the defaultFunctionNamespace attribute of the Context object |
java.lang.String |
getDefaultFunctionPrefix()
Returns the default function prefix, which can be an anonymous prefix |
java.lang.String |
getDefaultOrderEmptySequence()
Returns the default order for empty sequences |
static TypeDictionary |
getDictionary()
|
int |
getFTCase()
Set the Full Text Case Option |
java.lang.String |
getFTLanguage()
Get the Full Text Language Option |
FTStopWordsMatchOption |
getFTStopWords()
Get the full text stopwords option, i.e. |
FTThesaurusMatchOption |
getFTThesaurus()
Set the full text thesaurus option, i.e. |
Function |
getFunction(QName qname,
int arity)
Get a function with a name and number of parameters |
java.util.Hashtable |
getFunctions(java.lang.String namespace)
Get all functions with in particular namespace |
static Context |
getGlobalContext()
Access the global context explicitly |
int |
getInputValidationMode()
Shall input be validated? |
java.lang.String |
getLocationOfSchema(java.lang.String schemaURI)
|
java.util.Vector |
getModuleContexts()
|
java.util.Vector |
getModuleLocation(java.lang.String moduleNS_URI)
Retrieve the list of locations where the contents of the module are stored |
void |
getModuleLocations(Context ctx)
|
java.lang.String |
getModuleURI()
Gets the module URI if available or null. |
Namespace |
getNamespace(java.lang.String prefix)
Gets the namespace URI associated with the given prefix |
java.lang.String |
getOrderingMode()
|
Context |
getParent()
Gets the parent Context of this Context . |
int |
getParserType()
Return the parser type that is the default for XML parsing |
int |
getPosition()
Get the Context Position: the position of the context item within the current context |
java.lang.String |
getPrefix(java.lang.String uri)
get the (namespace-)prefix for a given URI. |
int |
getRevalidationMode()
Return the revalidation mode for update expressions |
Context |
getRootContext()
Access the root context explicitly |
boolean |
getsetBoundarySpaceHandling()
Gets the whitespaceHandling attribute of the Context object |
StoreSet |
getStores()
Returns the store set for XQueryUpdate. |
VariableHolder |
getVariable(QName qname)
Get the reference to the variable and its binding |
VariableHolder |
getVariable(QName qname,
boolean resolve)
Get the reference to the variable and its binding |
java.lang.String |
getWebServiceEndpointName()
|
java.lang.String |
getWebServiceName()
|
Namespace |
getWebServiceNamespace()
Returns the namespace of the to exposing web service functions |
int |
getWebServicePort()
Returns the web service port |
java.util.Hashtable |
getWSFunctions(java.lang.String namespace)
|
void |
incVariableUse(QName qname)
Indicate that there are more users for this variable |
static TypeDictionary |
initDictionary()
Initializes the dictionary to be used in this context |
boolean |
isAnecstorContext(XQStaticContext ctx)
Checks if the given Context is an ancestor of this context |
boolean |
isFTDiacriticsSensitive()
Get the full text diacritics sensitive option |
boolean |
isFTStemming()
Get the full text stemming option, i.e. |
boolean |
isFTWildcard()
Get the full text wildcard option, i.e. |
boolean |
isModuleContext()
Checks if the context belongs to a module The property it is a module is not inherited with the context. |
boolean |
isWebService()
Returns if the context is declared as a web service. |
boolean |
isXPath10Compat()
Get the XPath 1.0 Compatibility setting |
QName |
registerAnonymousVariable()
Registers a new "anonymous" (=internal) variable |
void |
registerNewContextItem()
Registers a new context item in this scope |
void |
registerVariable(QName qname,
boolean isFFLWOR)
Registers a new variable. |
void |
registerVariable(QName qname,
boolean external,
boolean isFFLWOR,
XDMIterator seqTypeIter,
boolean assignable)
Registers a new variable. |
void |
registerVariable(QName qname,
boolean external,
boolean isFFLWOR,
XDMIterator seqTypeIter,
boolean resolve,
boolean assignable)
Registers a new variable. |
void |
registerVariable(QName qname,
boolean isFFLWOR,
XDMIterator seqTypeIter,
boolean assignable)
Registers a new variable. |
void |
removeNamespace(java.lang.String prefix)
Remove a prefix/namespace from mapping. |
void |
setBaseURI(java.lang.String uri)
Sets the base URI. |
void |
setBoundarySpaceHandling(boolean value)
Sets the boundary Space Handling attribute of the Context object |
void |
setConstructionMode(java.lang.String value)
Sets the construction mode of the Context |
void |
setContextItem(XDMIterator iter)
|
void |
setCopyNamespacesMode(boolean preserve,
boolean inherit)
Set the copy namespaces modes for element construction, see 3.7.1.3 and 4.9 of the spec |
void |
setCurrentTime(MXQueryDateTime dateTime)
Stores the current time in the context. |
void |
setCurrentTimeZone(java.util.TimeZone tz)
Set the current time zone |
void |
setDefaultCollation(java.lang.String coll)
|
void |
setDefaultElementNamespace(java.lang.String URI)
Sets the defaultElementNamespace attribute of the Context object |
void |
setDefaultFunctionNamespace(java.lang.String URI)
Sets the defaultFunctionNamespace attribute of the Context object |
void |
setDefaultOrderEmptySequence(java.lang.String value)
Sets the default order for empty sequences. |
static void |
setDictionary(TypeDictionary dict)
Set the type dictionary |
void |
setFTCase(int caseOpt)
Set the Full Text Case Option |
void |
setFTDiacriticsSensitive(boolean sensitive)
Set the full text diacritics sensitive option (i.e. |
void |
setFTLanguage(java.lang.String lan)
Set the Full Text Language Option |
void |
setFTStemming(boolean stemming)
Set the full text stemming option, i.e. |
void |
setFTStopwords(FTStopWordsMatchOption sw)
Set the full text stopwords option, i.e. |
void |
setFTThesaurus(FTThesaurusMatchOption thes)
Set the full text thesaurus option, i.e. |
void |
setFTWildcard(boolean wildcards)
Set the full text wildcard option, i.e. |
void |
setInputValidationMode(int valMode)
Set the Type of input validation |
void |
setModuleContext(boolean isModule)
Sets if the context belongs to a module |
void |
setModuleURI(java.lang.String uri)
Sets the module URI |
void |
setOrderingMode(java.lang.String value)
Sets the Ordering mode, which has the value ordered or unordered, affects the ordering of the result sequence returned by certain path expressions, union, intersect, and except expressions, and FLWOR expressions that have no order by clause.] Details are provided in the descriptions of these expressions. |
void |
setParent(Context ctx)
Set/replace the parent with the given context |
void |
setParserType(int pType)
|
void |
setPosition(int position)
Set the Context Position: the position of the context item within the current context |
void |
setRevalidationMode(int valMode)
Set the revalidation mode for update expressions |
void |
setVariableValue(QName qname,
XDMIterator iter)
Set the value of this variable, implicitly creating/reusing stores if needed |
void |
setVariableValue(QName qname,
XDMIterator iter,
boolean check,
boolean resolve)
Set the value of this variable, implicitly creating/reusing stores if needed |
void |
setWebService(boolean isWebService)
|
void |
setWebService(int port,
Namespace namespace)
Prepares the context for as a webservice |
void |
setWebServiceEndpointName(java.lang.String endpointName)
|
void |
setWebServiceName(java.lang.String serviceName)
|
void |
setWebServiceNamespace(Namespace namespace)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String PARSER_TYPE
public static final QName CONTEXT_ITEM
public static final java.lang.String ANONYM_VARIABLE_URI
public static final java.lang.String ANONYM_VARIABLE_PREFIX
public static final java.lang.String DEFAULT_COLLECTION_URI
public static final int NONVALIDATED_INPUT_MODE_XPP
public static final int NONVALIDATED_INPUT_MODE_STAX
public static final int NONVALIDATED_INPUT_MODE_SAX
public static final int NONVALIDATED_INPUT_MODE_DOM
public static final int NONVALIDATED_INPUT_MODE_SAX_TIDY
public static final int NO_VALIDATION
public static final int DTD_VALIDATION
public static final int SCHEMA_VALIDATION_LAX
public static final int SCHEMA_VALIDATION_STRICT
public Location location
Constructor Detail |
---|
public Context()
public Context(Context parent)
parent
- the parent contextpublic Context(Context parent, StoreSet stores)
parent
- if not null, this will be the parent context of the newly
created context, otherwise this context will be a root
contextstores
- If the newly created context is a root context, it will
use this store setMethod Detail |
---|
public static TypeDictionary initDictionary()
public static TypeDictionary getDictionary()
public static void setDictionary(TypeDictionary dict)
dict
- public int getPosition()
XQDynamicContext
getPosition
in interface XQDynamicContext
public void setPosition(int position)
XQDynamicContext
setPosition
in interface XQDynamicContext
position
- the position to set, must be > 0public int getParserType()
public void setParserType(int pType)
public boolean addTargetNamespace(java.lang.String targetNamespace)
targetNamespace
-
public boolean containsTargetNamespace(java.lang.String targetNamespace)
public void registerVariable(QName qname, boolean isFFLWOR) throws MXQueryException
XQStaticContext
registerVariable
in interface XQStaticContext
MXQueryException
public void registerVariable(QName qname, boolean isFFLWOR, XDMIterator seqTypeIter, boolean assignable) throws MXQueryException
XQStaticContext
registerVariable
in interface XQStaticContext
MXQueryException
public void registerNewContextItem() throws MXQueryException
XQStaticContext
registerNewContextItem
in interface XQStaticContext
MXQueryException
public void registerVariable(QName qname, boolean external, boolean isFFLWOR, XDMIterator seqTypeIter, boolean assignable) throws MXQueryException
XQStaticContext
registerVariable
in interface XQStaticContext
MXQueryException
public void registerVariable(QName qname, boolean external, boolean isFFLWOR, XDMIterator seqTypeIter, boolean resolve, boolean assignable) throws MXQueryException
XQStaticContext
registerVariable
in interface XQStaticContext
MXQueryException
public QName registerAnonymousVariable()
XQStaticContext
registerAnonymousVariable
in interface XQStaticContext
public void setVariableValue(QName qname, XDMIterator iter, boolean check, boolean resolve) throws MXQueryException
XQDynamicContext
setVariableValue
in interface XQDynamicContext
qname
- the variable nameiter
- the iterator containing the XDM to setcheck
- if true, the non-existence of name
causes an error, otherwise the variable is createdresolve
- resolve/qualify name
MXQueryException
public void setVariableValue(QName qname, XDMIterator iter) throws MXQueryException
XQDynamicContext
setVariableValue
in interface XQDynamicContext
qname
- the variable nameiter
- the iterator containing the XDM to set
MXQueryException
public void bindVariableValue(QName qname, XDMIterator iter) throws MXQueryException
XQDynamicContext
bindVariableValue
in interface XQDynamicContext
qname
- the variable nameiter
- the iterator containing the XDM to bind
MXQueryException
public VariableHolder getVariable(QName qname) throws MXQueryException
XQDynamicContext
getVariable
in interface XQDynamicContext
qname
- the name of the variable
MXQueryException
public VariableHolder getVariable(QName qname, boolean resolve) throws MXQueryException
XQDynamicContext
getVariable
in interface XQDynamicContext
qname
- the name of the variableresolve
- resolve the QName
MXQueryException
public boolean checkVariable(QName qname) throws MXQueryException
XQStaticContext
checkVariable
in interface XQStaticContext
qname
- the name of the variable
MXQueryException
public void incVariableUse(QName qname) throws MXQueryException
XQDynamicContext
incVariableUse
in interface XQDynamicContext
qname
- Variable name
MXQueryException
public StoreSet getStores()
XQDynamicContext
getStores
in interface XQDynamicContext
public void setOrderingMode(java.lang.String value) throws MXQueryException
XQStaticContext
setOrderingMode
in interface XQStaticContext
MXQueryException
public java.lang.String getOrderingMode()
getOrderingMode
in interface XQStaticContext
public void setDefaultOrderEmptySequence(java.lang.String value) throws MXQueryException
XQStaticContext
setDefaultOrderEmptySequence
in interface XQStaticContext
MXQueryException
public java.lang.String getDefaultOrderEmptySequence()
XQStaticContext
getDefaultOrderEmptySequence
in interface XQStaticContext
public void setCopyNamespacesMode(boolean preserve, boolean inherit)
XQStaticContext
setCopyNamespacesMode
in interface XQStaticContext
preserve
- keep the namespaces of the original elementinherit
- inherit namespaces of the enclosing constructed elementpublic boolean getCopyNamespacesInheritMode()
XQStaticContext
getCopyNamespacesInheritMode
in interface XQStaticContext
public boolean getCopyNamespacesPreserveMode()
XQStaticContext
getCopyNamespacesPreserveMode
in interface XQStaticContext
public void setWebService(int port, Namespace namespace)
port
- namespace
- public void setWebService(boolean isWebService)
public void setWebServiceNamespace(Namespace namespace)
public void setWebServiceName(java.lang.String serviceName)
public void setWebServiceEndpointName(java.lang.String endpointName)
public boolean isWebService()
public int getWebServicePort() throws MXQueryException
MXQueryException
public Namespace getWebServiceNamespace() throws MXQueryException
MXQueryException
public java.lang.String getWebServiceName()
public java.lang.String getWebServiceEndpointName()
public java.util.Hashtable getAllNamespaces()
getAllNamespaces
in interface XQStaticContext
public java.util.Hashtable getAllVariables()
getAllVariables
in interface XQStaticContext
public java.lang.String getBaseURI()
XQStaticContext
getBaseURI
in interface XQStaticContext
public void setModuleContext(boolean isModule)
isModule
- public void exposeModule()
public boolean isModuleContext()
public void addModuleContext(XQStaticContext modCtx)
modCtx
- public void clearModuleContexts()
public java.util.Vector getModuleContexts()
public void setModuleURI(java.lang.String uri)
public java.lang.String getModuleURI()
public java.lang.String getConstructionMode()
XQStaticContext
getConstructionMode
in interface XQStaticContext
public MXQueryDateTime getCurrentTime() throws MXQueryException
XQDynamicContext
XQDynamicContext.setCurrentTime(MXQueryDateTime)
was called).
getCurrentTime
in interface XQDynamicContext
MXQueryException
public MXQueryDayTimeDuration getCurrentTimeZone() throws MXQueryException
XQDynamicContext
XQDynamicContext.setCurrentTime(MXQueryDateTime)
was called).
getCurrentTimeZone
in interface XQDynamicContext
MXQueryException
public java.lang.String getDefaultElementNamespace()
XQStaticContext
getDefaultElementNamespace
in interface XQStaticContext
public java.lang.String getDefaultElementPrefix()
XQStaticContext
getDefaultElementPrefix
in interface XQStaticContext
public java.lang.String getDefaultFunctionNamespace()
XQStaticContext
getDefaultFunctionNamespace
in interface XQStaticContext
public java.lang.String getDefaultFunctionPrefix()
XQStaticContext
getDefaultFunctionPrefix
in interface XQStaticContext
public Namespace getNamespace(java.lang.String prefix)
XQStaticContext
getNamespace
in interface XQStaticContext
prefix
- The given prefix
public java.lang.String getPrefix(java.lang.String uri)
XQStaticContext
getPrefix
in interface XQStaticContext
uri
- The URI to look for.
public Context getParent()
Context
of this Context
.
Context
or null
if
none.public void setParent(Context ctx)
ctx
- new parent contextpublic boolean isAnecstorContext(XQStaticContext ctx)
ctx
- that is a possible ancestor
public Context getRootContext()
public void addNamespace(Namespace ns) throws MXQueryException
XQStaticContext
addNamespace
in interface XQStaticContext
ns
- a namespace object containing prefix and uri
MXQueryException
public void addNamespace(java.lang.String prefix, java.lang.String uri) throws MXQueryException
XQStaticContext
addNamespace
in interface XQStaticContext
prefix
- The prefix.uri
- The URI of the namespace.
MXQueryException
public java.util.Vector getAllNsURI()
getAllNsURI
in interface XQStaticContext
public void removeNamespace(java.lang.String prefix)
XQStaticContext
removeNamespace
in interface XQStaticContext
prefix
- The prefix of the namespace to be removedpublic java.lang.String addAnonymousNamespace(java.lang.String uri) throws MXQueryException
addAnonymousNamespace
in interface XQStaticContext
uri
-
MXQueryException
public void setBaseURI(java.lang.String uri)
XQStaticContext
setBaseURI
in interface XQStaticContext
uri
- The URI to set.public void setConstructionMode(java.lang.String value)
XQStaticContext
setConstructionMode
in interface XQStaticContext
value
- The construction mode valuepublic void setCurrentTime(MXQueryDateTime dateTime)
XQDynamicContext
setCurrentTime
in interface XQDynamicContext
dateTime
- the time to set as current time - if null, the current system time is usedpublic void setCurrentTimeZone(java.util.TimeZone tz)
XQDynamicContext
setCurrentTimeZone
in interface XQDynamicContext
tz
- a Time Zonepublic void setDefaultElementNamespace(java.lang.String URI) throws MXQueryException
XQStaticContext
setDefaultElementNamespace
in interface XQStaticContext
URI
- The new defaultElementNamespace value
MXQueryException
public void setDefaultFunctionNamespace(java.lang.String URI) throws MXQueryException
XQStaticContext
setDefaultFunctionNamespace
in interface XQStaticContext
URI
- The new defaultFunctionNamespace value
MXQueryException
public void setBoundarySpaceHandling(boolean value)
XQStaticContext
setBoundarySpaceHandling
in interface XQStaticContext
value
- true - preserve false not preservepublic void addFunction(Function function, boolean checkExistence, boolean external) throws MXQueryException
XQStaticContext
addFunction
in interface XQStaticContext
MXQueryException
public void addFunction(Function function) throws MXQueryException
XQStaticContext
addFunction
in interface XQStaticContext
MXQueryException
public java.util.Hashtable getFunctions(java.lang.String namespace)
XQStaticContext
getFunctions
in interface XQStaticContext
namespace
- the namespace in which the functions must be
public java.util.Hashtable getWSFunctions(java.lang.String namespace)
getWSFunctions
in interface XQStaticContext
public Function getFunction(QName qname, int arity) throws MXQueryException
XQStaticContext
getFunction
in interface XQStaticContext
qname
- the name of the functionarity
- the number of parameters
MXQueryException
public void addModuleLocation(java.lang.String moduleNS_URI, java.lang.String location)
addModuleLocation
in interface XQStaticContext
moduleNS_URI
- Namespace of modulelocation
- Location where to retrieve the module contentspublic java.util.Vector getModuleLocation(java.lang.String moduleNS_URI)
XQStaticContext
getModuleLocation
in interface XQStaticContext
moduleNS_URI
- Namespace of the module
public void getModuleLocations(Context ctx)
public void clearModuleLocation()
XQStaticContext
clearModuleLocation
in interface XQStaticContext
public void addSchemaLocation(java.lang.String schemaURI, java.lang.String schemaLocation)
addSchemaLocation
in interface XQStaticContext
public java.lang.String getLocationOfSchema(java.lang.String schemaURI)
getLocationOfSchema
in interface XQStaticContext
public boolean getsetBoundarySpaceHandling()
XQStaticContext
getsetBoundarySpaceHandling
in interface XQStaticContext
public int getInputValidationMode()
public void setInputValidationMode(int valMode)
valMode
- the validation modepublic Set getCollations()
XQStaticContext
getCollations
in interface XQStaticContext
public java.lang.String getDefaultCollation()
XQStaticContext
getDefaultCollation
in interface XQStaticContext
public void setDefaultCollation(java.lang.String coll) throws MXQueryException
setDefaultCollation
in interface XQStaticContext
MXQueryException
public VariableHolder getContextItem() throws MXQueryException
getContextItem
in interface XQDynamicContext
MXQueryException
public void setContextItem(XDMIterator iter) throws MXQueryException
setContextItem
in interface XQDynamicContext
MXQueryException
public Context copy() throws MXQueryException
MXQueryException
public void flattenVariablesFrom(QName[] fsVars, Context innermostContext) throws MXQueryException
MXQueryException
public int getRevalidationMode()
XQStaticContext
getRevalidationMode
in interface XQStaticContext
public void setRevalidationMode(int valMode) throws MXQueryException
XQStaticContext
setRevalidationMode
in interface XQStaticContext
valMode
- one of REVALIDATION_LAX, REVALIDATION_STRICT, REVALIDATION_SKIP
MXQueryException
- If an invalid or unsupported revalidation mode was specifiedpublic void setFTLanguage(java.lang.String lan)
XQStaticContext
setFTLanguage
in interface XQStaticContext
public java.lang.String getFTLanguage()
XQStaticContext
getFTLanguage
in interface XQStaticContext
public void setFTCase(int caseOpt)
XQStaticContext
setFTCase
in interface XQStaticContext
caseOpt
- one of FTCaseMatchOption
.CASE_INSENSITIVE, CASE_SENSITIVE, CASE_LOWERCASE, CASE_UPPERCASEpublic int getFTCase()
XQStaticContext
getFTCase
in interface XQStaticContext
FTCaseMatchOption
.CASE_INSENSITIVE, CASE_SENSITIVE, CASE_LOWERCASE, CASE_UPPERCASEpublic void setFTDiacriticsSensitive(boolean sensitive)
XQStaticContext
setFTDiacriticsSensitive
in interface XQStaticContext
public boolean isFTDiacriticsSensitive()
XQStaticContext
isFTDiacriticsSensitive
in interface XQStaticContext
public void setFTStemming(boolean stemming)
XQStaticContext
setFTStemming
in interface XQStaticContext
stemming
- true stemming should be used, no stemming should not be usedpublic boolean isFTStemming()
XQStaticContext
isFTStemming
in interface XQStaticContext
public void setFTWildcard(boolean wildcards)
XQStaticContext
setFTWildcard
in interface XQStaticContext
wildcards
- true wildcards should be used, no wildscards should not be usedpublic boolean isFTWildcard()
XQStaticContext
isFTWildcard
in interface XQStaticContext
public void setFTStopwords(FTStopWordsMatchOption sw)
XQStaticContext
setFTStopwords
in interface XQStaticContext
sw
- A FTStopWordsMatchOption object describing the stopwordspublic FTStopWordsMatchOption getFTStopWords()
XQStaticContext
getFTStopWords
in interface XQStaticContext
public void setFTThesaurus(FTThesaurusMatchOption thes)
XQStaticContext
setFTThesaurus
in interface XQStaticContext
thes
- A FTThesaurusMatchOption object describing the thesauripublic FTThesaurusMatchOption getFTThesaurus()
XQStaticContext
getFTThesaurus
in interface XQStaticContext
public boolean isXPath10Compat()
XQStaticContext
isXPath10Compat
in interface XQStaticContext
public static Context getGlobalContext()
|
MXQuery 0.6.0 API Documentation - Copyright 2006-2009 ETH Zurich | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |