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 |
equals, 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:
- XQuery sequence
- 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
Copyright (C) Wolfgang Meier. All rights reserved.