Package org.basex.query
Class StaticContext
java.lang.Object
org.basex.query.StaticContext
This class contains the static context of an expression.
- Author:
- BaseX Team 2005-21, BSD License, Christian Gruen
-
Field Summary
FieldsModifier and TypeFieldDescriptionDefault collation (default collection (QueryText.COLLATION_URI):null).final TokenObjMap<DecFormatter>Decimal formats.byte[]Default element/type namespace.byte[]Default function namespace.booleanCopy-namespaces mode: (no-)inherit.final booleanMix updates flag.Name of module (not assigned for main module).final NSContextStatic and dynamic namespaces.booleanOrdering mode.booleanDefault order for empty sequences.booleanCopy-namespaces mode: (no-)preserve.booleanBoundary-space policy.booleanConstruction mode.final booleanLook up documents in databases. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbaseIO()Returns an IO representation of the static base URI ornull.baseURI()Returns the static base URI.voidSets the static base URI.decFormat(byte[] id) Returns a decimal format.Resolves the specified path against the base URI.Returns an IO reference for the specified path.toString()
-
Field Details
-
decFormats
Decimal formats. -
ns
Static and dynamic namespaces. -
mixUpdates
public final boolean mixUpdatesMix updates flag. -
withdb
public final boolean withdbLook up documents in databases. -
collation
Default collation (default collection (QueryText.COLLATION_URI):null). -
elemNS
public byte[] elemNSDefault element/type namespace. -
funcNS
public byte[] funcNSDefault function namespace. -
module
Name of module (not assigned for main module). -
strip
public boolean stripConstruction mode. -
ordered
public boolean orderedOrdering mode. -
orderGreatest
public boolean orderGreatestDefault order for empty sequences. -
spaces
public boolean spacesBoundary-space policy. -
preserveNS
public boolean preserveNSCopy-namespaces mode: (no-)preserve. -
inheritNS
public boolean inheritNSCopy-namespaces mode: (no-)inherit.
-
-
Constructor Details
-
StaticContext
Constructor.- Parameters:
qc- query context
-
-
Method Details
-
baseURI
Returns the static base URI.- Returns:
- base URI
-
baseURI
Sets the static base URI.- Parameters:
uri- uri to be set: an empty URI will be ignored,nullinvalidates the URI
-
baseIO
Returns an IO representation of the static base URI ornull.- Returns:
- IO reference (can be
null)
-
resolve
Resolves the specified path against the base URI.- Parameters:
path- to be resolved- Returns:
- resulting path
-
resolve
Returns an IO reference for the specified path. If a base URI exists, it is merged with the path.- Parameters:
path- file pathuri- module namespace (can benull, only relevant for custom resolver)- Returns:
- io reference
-
decFormat
Returns a decimal format.- Parameters:
id- format id- Returns:
- decimal format or
null - Throws:
QueryException- query exception
-
toString
-