| java.lang.Object gnu.xquery.util.NodeUtils
NodeUtils | public class NodeUtils (Code) | | |
Method Summary | |
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. | public static Object | baseUri(Object arg) | public static Object | collection(Object uri, Object base) | public static void | data$X(Object arg, CallContext ctx) | public static Object | docCached(Object uri, Object base) Parse an XML document, caching the result. | public static Object | documentUri(Object arg) | static Object | getIDs(Object arg, Object collector) Extract canditate IDREFs from arg. | public static String | getLang(KNode node) | public static Object | getSavedCollection(Object uri, Environment env) Default resolver for fn:collection. | public static Object | getSavedCollection(Object uri) Default resolver for fn:collection. | public static void | id$X(Object arg1, Object arg2, CallContext ctx) | public static Object | idref(Object arg1, Object arg2) | 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) | static Object | resolve(Object uri, Object base, String fname) | 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. | 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. |
collectionNamespace | static String collectionNamespace(Code) | | Internal namespace used to manage cached collections.
|
collectionResolverSymbol | final public static Symbol collectionResolverSymbol(Code) | | Symbol used to bind a collection resolver.
|
availableCached | public static boolean availableCached(Object uri, Object base) throws Throwable(Code) | | 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.
|
docCached | public static Object docCached(Object uri, Object base) throws Throwable(Code) | | Parse an XML document, caching the result.
Only positive results are cached; failures are not.)
This implements the standard XQuery fn:doc function.
|
getIDs | static Object getIDs(Object arg, Object collector)(Code) | | Extract canditate IDREFs from arg.
null (if no IDREF s);a String (if a single IDREF );or a Stack (if more than one IDREF s). |
getSavedCollection | public static Object getSavedCollection(Object uri, Environment env)(Code) | | Default resolver for fn:collection.
Return nodes previously bound using setSavedCollection.
|
getSavedCollection | public static Object getSavedCollection(Object uri)(Code) | | Default resolver for fn:collection.
Return nodes previously bound using setSavedCollection.
|
rootDocument | public static KDocument rootDocument(Object arg)(Code) | | Return root node, coerced to a document node.
Used to implement '/'-rooted path expressions.
|
setSavedCollection | public static void setSavedCollection(Object uri, Object value, Environment env)(Code) | | Add a uri-to-value binding that setSavedCollection can later return.
|
setSavedCollection | public static void setSavedCollection(Object uri, Object value)(Code) | | Add a uri-to-value binding that setSavedCollection can later return.
|
|
|