|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.jet.xpath.XPathUtil
public final class XPathUtil
Utility class for common XPath operations.
Nested Class Summary | |
---|---|
protected static class |
XPathUtil.NodeSetAdapter
Adapter for Arrays and Collections into XPath NodeSets |
Method Summary | |
---|---|
static NodeSet |
asNodeSet(java.util.Collection collection)
Return a NodeSet wrapper for the given collection |
static NodeSet |
asNodeSet(java.lang.Object[] objectArray)
Return a NodeSet wrapper for the given array. |
static boolean |
xpathBoolean(java.lang.Object object)
Invoke the XPath 'boolean' function on the argument. |
static double |
xpathNumber(java.lang.Object object)
Invoke the XPath 'number' function on the argument. |
static java.lang.String |
xpathString(java.lang.Object object)
Invoke the XPath 'string' function on the argument. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static java.lang.String xpathString(java.lang.Object object)
object
- the argument to convert to a string. Cannot be null
java.lang.NullPointerException
- if object
is null
.public static boolean xpathBoolean(java.lang.Object object)
object
- the argument to convert to a boolean. Cannot be null
java.lang.NullPointerException
- if object
is null
.public static double xpathNumber(java.lang.Object object)
object
- the argument to convert to a number (double). Cannot be null
java.lang.NullPointerException
- if object
is null
.public static NodeSet asNodeSet(java.lang.Object[] objectArray)
NodeSet
wrapper for the given array.
objectArray
- an array of objects.
public static NodeSet asNodeSet(java.util.Collection collection)
NodeSet
wrapper for the given collection
collection
- a collection
|
Copyright 2006 IBM Corporation and others. All Rights Reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |