|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.basex.query.StaticContext
public final class StaticContext
This class contains the static context of an expression.
Field Summary | |
---|---|
Collation |
collation
Default collation. |
TokenObjMap<DecFormatter> |
decFormats
Decimal formats. |
SeqType |
initType
Context item static type. |
NSContext |
ns
Static and dynamic namespaces. |
byte[] |
nsElem
Default element/type namespace. |
byte[] |
nsFunc
Default function namespace. |
boolean |
nsInherit
Copy-namespaces mode: (no-)inherit. |
boolean |
nsPreserve
Copy-namespaces mode: (no-)preserve. |
boolean |
ordered
Ordering mode. |
boolean |
orderGreatest
Default order for empty sequences. |
boolean |
spaces
Boundary-space policy. |
boolean |
strip
Construction mode. |
Constructor Summary | |
---|---|
StaticContext(boolean xq30)
Constructor setting the XQuery version. |
Method Summary | |
---|---|
IO |
baseIO()
Returns an IO representation of the static base URI, or null . |
Uri |
baseURI()
Returns the static base URI. |
void |
baseURI(java.lang.String uri)
Sets the static base URI. |
IO |
io(java.lang.String path)
Returns an IO reference for the specified filename. |
void |
namespace(java.lang.String prefix,
java.lang.String uri)
Declares a namespace. |
java.lang.String |
toString()
|
boolean |
xquery3()
Checks if XQuery 3.0 features are allowed. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public final TokenObjMap<DecFormatter> decFormats
public final NSContext ns
public Collation collation
public byte[] nsElem
public byte[] nsFunc
public SeqType initType
public boolean strip
public boolean ordered
public boolean orderGreatest
public boolean spaces
public boolean nsPreserve
public boolean nsInherit
Constructor Detail |
---|
public StaticContext(boolean xq30)
xq30
- XQuery 3.0 flagMethod Detail |
---|
public void namespace(java.lang.String prefix, java.lang.String uri) throws QueryException
prefix
- namespace prefixuri
- namespace URI
QueryException
- query exceptionpublic IO baseIO()
null
.
public IO io(java.lang.String path)
path
- file path
public Uri baseURI()
public void baseURI(java.lang.String uri)
uri
- uri to be setpublic boolean xquery3()
true
if XQuery 3.0 is allowed, false
otherwisepublic java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |