org.exist.xquery
Class XPathUtil
java.lang.Object
org.exist.xquery.XPathUtil
public class XPathUtil
- extends Object
XPathUtil
public XPathUtil()
javaObjectToXPath
public static final Sequence javaObjectToXPath(Object obj,
XQueryContext context)
throws XPathException
- Convert Java object to an XQuery sequence. Objects of type Sequence are
directly returned, other objects are converted into the corresponding
internal types.
- Parameters:
obj
-
- Returns:
- XQuery sequence
- Throws:
XPathException
javaObjectToXPath
public static final Sequence javaObjectToXPath(Object obj,
XQueryContext context,
boolean expandChars)
throws XPathException
- Throws:
XPathException
javaClassToXPath
public static final int javaClassToXPath(Class clazz)
getNode
public static final NodeProxy getNode(DBBroker broker,
XMLResource xres)
throws XPathException
- Converts an XMLResource into a NodeProxy.
- Parameters:
broker
- The DBBroker to use to access the databasexres
- The XMLResource to convert
- Returns:
- A NodeProxy for accessing the content represented by xres
- Throws:
XPathException
- if an XMLDBException is encountered
Copyright (C) Wolfgang Meier. All rights reserved.