org.exist.xquery
Class XPathUtil
java.lang.Object
org.exist.xquery.XPathUtil
- public class XPathUtil
- extends java.lang.Object
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XPathUtil
public XPathUtil()
javaObjectToXPath
public static final Sequence javaObjectToXPath(java.lang.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:
-
- Throws:
XPathException
javaObjectToXPath
public static final Sequence javaObjectToXPath(java.lang.Object obj,
XQueryContext context,
boolean expandChars)
throws XPathException
- Throws:
XPathException
javaClassToXPath
public static final int javaClassToXPath(java.lang.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
<oXygen/>
XML Editor
provides support for editing and debugging XQuery
expressions against the eXist XML Database.