Package gnu.xquery.util
Class NodeUtils
java.lang.Object
gnu.xquery.util.NodeUtils
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanavailableCached(Object uri, Object base) Check if an XML document is available, caching the result.static Objectstatic Objectcollection(Object uri, Object base) static voiddata$X(Object arg, CallContext ctx) static ObjectParse an XML document, caching the result.static ObjectdocumentUri(Object arg) static Stringstatic ObjectgetSavedCollection(Object uri) Default resolver for fn:collection.static ObjectgetSavedCollection(Object uri, Environment env) Default resolver for fn:collection.static voidid$X(Object arg1, Object arg2, CallContext ctx) static Objectstatic voidinScopePrefixes$X(Object node, CallContext ctx) static booleanstatic Stringstatic Stringstatic ObjectnamespaceURI(Object node) static Objectstatic Objectstatic voidprefixesFromNodetype(XName name, Consumer out) static ObjectReturn the root node of the argument.static KDocumentrootDocument(Object arg) Return root node, coerced to a document node.static voidsetSavedCollection(Object uri, Object value) Add a uri-to-value binding that setSavedCollection can later return.static voidsetSavedCollection(Object uri, Object value, Environment env) Add a uri-to-value binding that setSavedCollection can later return.
-
Field Details
-
collectionResolverSymbol
Symbol used to bind a collection resolver.
-
-
Constructor Details
-
NodeUtils
public NodeUtils()
-
-
Method Details
-
nodeName
-
name
-
localName
-
namespaceURI
-
prefixesFromNodetype
-
inScopePrefixes$X
-
data$X
-
root
Return the root node of the argument. -
rootDocument
Return root node, coerced to a document node. Used to implement '/'-rooted path expressions. -
getLang
-
lang
-
documentUri
-
nilled
-
baseUri
-
id$X
-
idref
-
setSavedCollection
Add a uri-to-value binding that setSavedCollection can later return. -
setSavedCollection
Add a uri-to-value binding that setSavedCollection can later return. -
getSavedCollection
Default resolver for fn:collection. Return nodes previously bound using setSavedCollection. -
getSavedCollection
Default resolver for fn:collection. Return nodes previously bound using setSavedCollection. -
collection
- Throws:
Throwable
-
docCached
Parse an XML document, caching the result. Only positive results are cached; failures are not.) This implements the standard XQueryfn:docfunction.- Throws:
Throwable
-
availableCached
Check if an XML document is available, caching the result. Only positive results are cached; failures are not. Thus it is possible for a false result to be followed by a true result, but not vice versa. This implements the standard XQueryfn:doc-availablefunction.- Throws:
Throwable
-