gnu.xquery.util
Class NodeUtils
public
class
NodeUtils
extends Object
Method Summary |
static boolean | availableCached(Object uri, Object base) Check if an XML document is available, caching the result.
|
static Object | baseUri(Object arg) |
static Object | collection(Object uri, Object base) |
static void | data$X(Object arg, CallContext ctx) |
static Object | docCached(Object uri, Object base) Parse an XML document, caching the result.
|
static Object | documentUri(Object arg) |
static String | getLang(KNode node) |
static Object | getSavedCollection(Object uri, Environment env) Default resolver for fn:collection.
|
static Object | getSavedCollection(Object uri) Default resolver for fn:collection.
|
static Object | idref(Object arg1, Object arg2) |
static void | id$X(Object arg1, Object arg2, CallContext ctx) |
static void | inScopePrefixes$X(Object node, CallContext ctx) |
static boolean | lang(Object testlang, Object node) |
static String | localName(Object node) |
static String | name(Object node) |
static Object | namespaceURI(Object node) |
static Object | nilled(Object arg) |
static Object | nodeName(Object node) |
static void | prefixesFromNodetype(XName name, Consumer out) |
static Object | root(Object arg) 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, Environment env) Add a uri-to-value binding that setSavedCollection can later return. |
static void | setSavedCollection(Object uri, Object value) Add a uri-to-value binding that setSavedCollection can later return. |
public static final
Symbol collectionResolverSymbol
Symbol used to bind a collection resolver.
public static boolean availableCached(Object uri, Object base)
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 XQuery fn:doc-available
function.
public static Object baseUri(Object arg)
public static Object collection(Object uri, Object base)
public static Object docCached(Object uri, Object base)
Parse an XML document, caching the result.
Only positive results are cached; failures are not.)
This implements the standard XQuery fn:doc
function.
public static Object documentUri(Object arg)
public static String getLang(
KNode node)
public static Object getSavedCollection(Object uri,
Environment env)
Default resolver for fn:collection.
Return nodes previously bound using setSavedCollection.
public static Object getSavedCollection(Object uri)
Default resolver for fn:collection.
Return nodes previously bound using setSavedCollection.
public static Object idref(Object arg1, Object arg2)
public static void id$X(Object arg1, Object arg2,
CallContext ctx)
public static void inScopePrefixes$X(Object node,
CallContext ctx)
public static boolean lang(Object testlang, Object node)
public static String localName(Object node)
public static String name(Object node)
public static Object namespaceURI(Object node)
public static Object nilled(Object arg)
public static Object nodeName(Object node)
public static void prefixesFromNodetype(
XName name,
Consumer out)
public static Object root(Object arg)
Return the root node of the argument.
public static
KDocument rootDocument(Object arg)
Return root node, coerced to a document node.
Used to implement '/'-rooted path expressions.
public static void setSavedCollection(Object uri, Object value,
Environment env)
Add a uri-to-value binding that setSavedCollection can later return.
public static void setSavedCollection(Object uri, Object value)
Add a uri-to-value binding that setSavedCollection can later return.