Package gnu.xquery.util
Class NodeUtils
java.lang.Object
gnu.xquery.util.NodeUtils
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
availableCached
(Object uri, Object base) Check if an XML document is available, caching the result.static Object
static Object
collection
(Object uri, Object base) static void
data$X
(Object arg, CallContext ctx) static Object
Parse an XML document, caching the result.static Object
documentUri
(Object arg) static String
static Object
getSavedCollection
(Object uri) Default resolver for fn:collection.static Object
getSavedCollection
(Object uri, Environment env) Default resolver for fn:collection.static void
id$X
(Object arg1, Object arg2, CallContext ctx) static Object
static void
inScopePrefixes$X
(Object node, CallContext ctx) static boolean
static String
static String
static Object
namespaceURI
(Object node) static Object
static Object
static void
prefixesFromNodetype
(XName name, Consumer out) static Object
Return the root node of the argument.static KDocument
rootDocument
(Object arg) Return root node, coerced to a document node.static void
setSavedCollection
(Object uri, Object value) Add a uri-to-value binding that setSavedCollection can later return.static void
setSavedCollection
(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:doc
function.- 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-available
function.- Throws:
Throwable
-