|
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 |
public interface XQStaticContext
Field Summary | |
---|---|
static java.lang.String |
CODEPOINT_COLLATION_URI
|
static java.lang.String |
COPY_MODE_INHERIT
|
static java.lang.String |
COPY_MODE_NO_INHERIT
|
static java.lang.String |
COPY_MODE_NO_PRESERVE
|
static java.lang.String |
COPY_MODE_PRESERVE
|
static java.lang.String |
NS_ERR
|
static java.lang.String |
NS_XML
|
static java.lang.String |
NS_XMLNS
|
static java.lang.String |
ORDER_GREATEST
|
static java.lang.String |
ORDER_LEAST
|
static java.lang.String |
ORDERED
|
static java.lang.String |
PRESERVE
|
static int |
REVALIDATION_LAX
|
static int |
REVALIDATION_SKIP
|
static int |
REVALIDATION_STRICT
|
static java.lang.String |
STRIP
|
static java.lang.String |
UNORDERED
|
static java.lang.String |
URI_ERR
|
static java.lang.String |
URI_FN
|
static java.lang.String |
URI_LOCAL
|
static java.lang.String |
URI_XDT
|
static java.lang.String |
URI_XML
|
static java.lang.String |
URI_XMLNS
|
static java.lang.String |
URI_XS
|
static java.lang.String |
URI_XSI
|
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 |
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 |
checkVariable(QName qname)
Check if the variable is defined |
void |
clearModuleLocation()
Clear this list of locations mapping between module identifiers and locations |
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 |
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 |
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 |
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 |
java.lang.String |
getLocationOfSchema(java.lang.String schemaURI)
|
java.util.Vector |
getModuleLocation(java.lang.String moduleNS_URI)
Retrieve the list of locations where the contents of the module are stored |
Namespace |
getNamespace(java.lang.String prefix)
Gets the namespace URI associated with the given prefix |
java.lang.String |
getOrderingMode()
|
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 |
boolean |
getsetBoundarySpaceHandling()
Gets the whitespaceHandling attribute of the Context object |
java.util.Hashtable |
getWSFunctions(java.lang.String namespace)
|
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 |
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 |
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 |
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. |
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 |
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 |
setRevalidationMode(int valMode)
Set the revalidation mode for update expressions |
Field Detail |
---|
static final java.lang.String PRESERVE
static final java.lang.String STRIP
static final java.lang.String ORDERED
static final java.lang.String UNORDERED
static final java.lang.String ORDER_GREATEST
static final java.lang.String ORDER_LEAST
static final java.lang.String COPY_MODE_PRESERVE
static final java.lang.String COPY_MODE_NO_PRESERVE
static final java.lang.String COPY_MODE_INHERIT
static final java.lang.String COPY_MODE_NO_INHERIT
static final int REVALIDATION_LAX
static final int REVALIDATION_STRICT
static final int REVALIDATION_SKIP
static final java.lang.String CODEPOINT_COLLATION_URI
static final java.lang.String URI_FN
static final java.lang.String NS_XML
static final java.lang.String URI_XML
static final java.lang.String URI_XS
static final java.lang.String URI_XSI
static final java.lang.String URI_XDT
static final java.lang.String URI_LOCAL
static final java.lang.String NS_XMLNS
static final java.lang.String URI_XMLNS
static final java.lang.String NS_ERR
static final java.lang.String URI_ERR
Method Detail |
---|
void setOrderingMode(java.lang.String value) throws MXQueryException
MXQueryException
java.lang.String getOrderingMode()
void setDefaultOrderEmptySequence(java.lang.String value) throws MXQueryException
value
-
MXQueryException
java.lang.String getDefaultOrderEmptySequence()
void setCopyNamespacesMode(boolean preserve, boolean inherit)
preserve
- keep the namespaces of the original elementinherit
- inherit namespaces of the enclosing constructed elementboolean getCopyNamespacesInheritMode()
boolean getCopyNamespacesPreserveMode()
java.util.Hashtable getAllNamespaces()
java.util.Hashtable getAllVariables()
java.lang.String getBaseURI()
void setBaseURI(java.lang.String uri)
uri
- The URI to set.java.lang.String getConstructionMode()
java.lang.String getDefaultElementNamespace()
java.lang.String getDefaultElementPrefix()
java.lang.String getDefaultFunctionNamespace()
java.lang.String getDefaultFunctionPrefix()
Namespace getNamespace(java.lang.String prefix)
prefix
- The given prefix
java.lang.String getPrefix(java.lang.String uri)
uri
- The URI to look for.
void addNamespace(Namespace ns) throws MXQueryException
ns
- a namespace object containing prefix and uri
MXQueryException
void addNamespace(java.lang.String prefix, java.lang.String uri) throws MXQueryException
prefix
- The prefix.uri
- The URI of the namespace.
MXQueryException
java.util.Vector getAllNsURI()
void removeNamespace(java.lang.String prefix)
prefix
- The prefix of the namespace to be removedvoid setConstructionMode(java.lang.String value)
value
- The construction mode valuevoid setDefaultElementNamespace(java.lang.String URI) throws MXQueryException
URI
- The new defaultElementNamespace value
MXQueryException
void setDefaultFunctionNamespace(java.lang.String URI) throws MXQueryException
URI
- The new defaultFunctionNamespace value
MXQueryException
void setBoundarySpaceHandling(boolean value)
value
- true - preserve false not preservevoid addFunction(Function function, boolean checkExistence, boolean external) throws MXQueryException
function
-
MXQueryException
void addFunction(Function function) throws MXQueryException
function
-
MXQueryException
java.util.Hashtable getFunctions(java.lang.String namespace)
namespace
- the namespace in which the functions must be
Function getFunction(QName qname, int arity) throws MXQueryException
qname
- the name of the functionarity
- the number of parameters
MXQueryException
boolean getsetBoundarySpaceHandling()
Set getCollations()
java.lang.String getDefaultCollation()
void setDefaultCollation(java.lang.String coll) throws MXQueryException
MXQueryException
int getRevalidationMode()
void setRevalidationMode(int valMode) throws MXQueryException
valMode
- one of REVALIDATION_LAX, REVALIDATION_STRICT, REVALIDATION_SKIP
MXQueryException
- If an invalid or unsupported revalidation mode was specifiedvoid setFTLanguage(java.lang.String lan)
lan
- java.lang.String getFTLanguage()
void setFTCase(int caseOpt)
caseOpt
- one of FTCaseMatchOption
.CASE_INSENSITIVE, CASE_SENSITIVE, CASE_LOWERCASE, CASE_UPPERCASEint getFTCase()
FTCaseMatchOption
.CASE_INSENSITIVE, CASE_SENSITIVE, CASE_LOWERCASE, CASE_UPPERCASEvoid setFTDiacriticsSensitive(boolean sensitive)
sensitive
- boolean isFTDiacriticsSensitive()
void setFTStemming(boolean stemming)
stemming
- true stemming should be used, no stemming should not be usedboolean isFTStemming()
void setFTWildcard(boolean wildcards)
wildcards
- true wildcards should be used, no wildscards should not be usedboolean isFTWildcard()
void setFTStopwords(FTStopWordsMatchOption sw)
sw
- A FTStopWordsMatchOption object describing the stopwordsFTStopWordsMatchOption getFTStopWords()
void setFTThesaurus(FTThesaurusMatchOption thes)
thes
- A FTThesaurusMatchOption object describing the thesauriFTThesaurusMatchOption getFTThesaurus()
boolean isXPath10Compat()
void registerVariable(QName qname, boolean isFFLWOR) throws MXQueryException
qname
- isFFLWOR
-
MXQueryException
void registerVariable(QName qname, boolean isFFLWOR, XDMIterator seqTypeIter, boolean assignable) throws MXQueryException
qname
- isFFLWOR
- seqTypeIter
- assignable
-
MXQueryException
void registerNewContextItem() throws MXQueryException
MXQueryException
void registerVariable(QName qname, boolean external, boolean isFFLWOR, XDMIterator seqTypeIter, boolean assignable) throws MXQueryException
qname
- external
- isFFLWOR
- seqTypeIter
- assignable
-
MXQueryException
void registerVariable(QName qname, boolean external, boolean isFFLWOR, XDMIterator seqTypeIter, boolean resolve, boolean assignable) throws MXQueryException
qname
- external
- isFFLWOR
- seqTypeIter
- resolve
- assignable
-
MXQueryException
QName registerAnonymousVariable()
boolean checkVariable(QName qname) throws MXQueryException
qname
- the name of the variable
MXQueryException
java.lang.String addAnonymousNamespace(java.lang.String uri) throws MXQueryException
uri
-
MXQueryException
java.util.Hashtable getWSFunctions(java.lang.String namespace)
void addModuleLocation(java.lang.String moduleNS_URI, java.lang.String location)
moduleNS_URI
- Namespace of modulelocation
- Location where to retrieve the module contentsjava.util.Vector getModuleLocation(java.lang.String moduleNS_URI)
moduleNS_URI
- Namespace of the module
void clearModuleLocation()
void addSchemaLocation(java.lang.String schemaURI, java.lang.String schemaLocation)
schemaURI
- schemaLocation
- java.lang.String getLocationOfSchema(java.lang.String schemaURI)
|
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 |