|
Oracle BPEL Process Manager Client Java API Reference 10g Release 3 (10.1.3.1.0) B28986-01 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
com.collaxa.xml.XPathUtils
public class XPathUtils
Collection of XPath expression utility methods.
Constructor Summary | |
---|---|
XPathUtils() |
Method Summary | |
---|---|
static boolean |
booleanValueOf(org.w3c.dom.Element pElement, java.lang.String xpathExpression) Deprecated. Please use the other alternative booleanValueOf() method which takes the prefix-namespace map, this method will be removed in next release or so. |
static boolean |
booleanValueOf(org.w3c.dom.Element pElement, java.lang.String xpathExpression, java.util.Map prefixNamespaceMapping) Evaluates an XPath expression and returns the boolean value of the XPath expression if the expression results in a boolean. |
static java.lang.Object |
evaluate(org.w3c.dom.Element pElement, java.lang.String xpathExpression) Deprecated. Please use the other alternative evaluate() method which takes the prefix-namespace map, this method will be removed in next release or so. |
static java.lang.Object |
evaluate(org.w3c.dom.Element pElement, java.lang.String xpathExpression, java.util.Map prefixNamespaceMapping) Evaluates an XPath expression and returns the result as an java.lang.Object . |
static javax.xml.xpath.XPath |
getXPath(javax.xml.namespace.NamespaceContext nsContext) |
static java.lang.Number |
numberValueOf(org.w3c.dom.Element pElement, java.lang.String xpathExpression) Deprecated. Please use the other alternative numberValueOf() method which takes the prefix-namespace map, this method will be removed in next release or so. |
static java.lang.Number |
numberValueOf(org.w3c.dom.Element pElement, java.lang.String xpathExpression, java.util.Map prefixNamespaceMapping) Evaluates an XPath expression and returns the numeric value of the XPath expression if the expression results in a number, or null if the result is not a number. |
static org.w3c.dom.NodeList |
selectNodes(org.w3c.dom.Element pElement, java.lang.String xpathExpression) Deprecated. Please use the other alternative selectNodes() method which takes the prefix-namespace map, this method will be removed in next release or so. |
static org.w3c.dom.NodeList |
selectNodes(org.w3c.dom.Element pElement, java.lang.String xpathExpression, java.util.Map prefixNamespaceMapping) Evaluates an XPath expression and returns the result as a List of org.w3c.dom.Node instances or String instances depending on the XPath expression. |
static org.w3c.dom.NodeList |
selectNodes(org.w3c.dom.Element pElement, java.lang.String xpathExpression, javax.xml.namespace.NamespaceContext namespaceContext) |
static java.lang.Object |
selectSingleNode(org.w3c.dom.Element pElement, java.lang.String xpathExpression) Deprecated. Please use the other alternative selectSingleNode() method which takes the prefix-namespace map, this method will be removed in next release or so. |
static java.lang.Object |
selectSingleNode(org.w3c.dom.Element pElement, java.lang.String xpathExpression, java.util.Map prefixNamespaceMapping) Evaluates an XPath expression and returns the result as a single org.w3c.dom.Node instance. |
static java.lang.String |
valueOf(org.w3c.dom.Element pElement, java.lang.String xpathExpression) Deprecated. Please use the other alternative valueOf() method which takes the prefix-namespace map, this method will be removed in next release or so. |
static java.lang.String |
valueOf(org.w3c.dom.Element pElement, java.lang.String xpathExpression, java.util.Map prefixNamespaceMapping) Evaluates an XPath expression and returns the textual representation of the results the string-value of the node. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public XPathUtils()
Method Detail |
---|
public static org.w3c.dom.NodeList selectNodes(org.w3c.dom.Element pElement, java.lang.String xpathExpression) throws java.lang.Exception
List
of org.w3c.dom.Node
instances or String
instances depending on the XPath expression.xpathExpression
- is the XPath expression to be evaluatedjava.lang.Exception
- if the XPath expression is invalid.public static org.w3c.dom.NodeList selectNodes(org.w3c.dom.Element pElement, java.lang.String xpathExpression, java.util.Map prefixNamespaceMapping) throws java.lang.Exception
List
of org.w3c.dom.Node
instances or String
instances depending on the XPath expression.xpathExpression
- is the XPath expression to be evaluatedjava.lang.Exception
- if the XPath expression is invalid.public static org.w3c.dom.NodeList selectNodes(org.w3c.dom.Element pElement, java.lang.String xpathExpression, javax.xml.namespace.NamespaceContext namespaceContext) throws java.lang.Exception
java.lang.Exception
public static java.lang.Object evaluate(org.w3c.dom.Element pElement, java.lang.String xpathExpression) throws java.lang.Exception
java.lang.Object
. The object returned can either be a java.util.List
of one or more org.w3c.dom.Node
instances or a scalar object like a java.lang.String
or a java.lang.Number
instance depending on the XPath expression.xpathExpression
- is the XPath expression to be evaluatedjava.lang.Exception
- if the XPath expression is invalid.public static java.lang.Object evaluate(org.w3c.dom.Element pElement, java.lang.String xpathExpression, java.util.Map prefixNamespaceMapping) throws java.lang.Exception
java.lang.Object
. The object returned can either be a java.util.List
of one or more org.w3c.dom.Node
instances or a scalar object like a java.lang.String
or a java.lang.Number
instance depending on the XPath expression.xpathExpression
- is the XPath expression to be evaluatedjava.lang.Exception
- if the XPath expression is invalid.public static java.lang.Object selectSingleNode(org.w3c.dom.Element pElement, java.lang.String xpathExpression) throws java.lang.Exception
org.w3c.dom.Node
instance.xpathExpression
- is the XPath expression to be evaluatedjava.lang.Exception
- if the XPath expression is invalid.public static java.lang.Object selectSingleNode(org.w3c.dom.Element pElement, java.lang.String xpathExpression, java.util.Map prefixNamespaceMapping) throws java.lang.Exception
org.w3c.dom.Node
instance.xpathExpression
- is the XPath expression to be evaluatedjava.lang.Exception
- if the XPath expression is invalid.public static java.lang.String valueOf(org.w3c.dom.Element pElement, java.lang.String xpathExpression) throws java.lang.Exception
The string-value for a given node type is defined in the XPath specification.
xpathExpression
- is the XPath expression to be evaluatedjava.lang.Exception
- if the XPath expression is invalid.public static java.lang.String valueOf(org.w3c.dom.Element pElement, java.lang.String xpathExpression, java.util.Map prefixNamespaceMapping) throws java.lang.Exception
The string-value for a given node type is defined in the XPath specification.
xpathExpression
- is the XPath expression to be evaluatedjava.lang.Exception
- if the XPath expression is invalid.public static java.lang.Number numberValueOf(org.w3c.dom.Element pElement, java.lang.String xpathExpression) throws java.lang.Exception
null
if the result is not a number.xpathExpression
- is the XPath expression to be evaluatedjava.lang.Exception
- if the XPath expression is invalid.public static java.lang.Number numberValueOf(org.w3c.dom.Element pElement, java.lang.String xpathExpression, java.util.Map prefixNamespaceMapping) throws java.lang.Exception
null
if the result is not a number.xpathExpression
- is the XPath expression to be evaluatedjava.lang.Exception
- if the XPath expression is invalid.public static boolean booleanValueOf(org.w3c.dom.Element pElement, java.lang.String xpathExpression) throws java.lang.Exception
xpathExpression
- is the XPath expression to be evaluatedjava.lang.Exception
- if the XPath expression is invalid.public static boolean booleanValueOf(org.w3c.dom.Element pElement, java.lang.String xpathExpression, java.util.Map prefixNamespaceMapping) throws java.lang.Exception
xpathExpression
- is the XPath expression to be evaluatedjava.lang.Exception
- if the XPath expression is invalid.public static javax.xml.xpath.XPath getXPath(javax.xml.namespace.NamespaceContext nsContext)
|
Oracle BPEL Process Manager Client Java API Reference 10g Release 3 (10.1.3.1.0) B28986-01 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |