org.eclipse.jet.xpath
Class XPathUtil

java.lang.Object
  extended byorg.eclipse.jet.xpath.XPathUtil

public class XPathUtil
extends java.lang.Object

Utility class for common XPath operations.


Constructor Summary
XPathUtil()
           
 
Method Summary
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
 

Constructor Detail

XPathUtil

public XPathUtil()
Method Detail

xpathString

public static java.lang.String xpathString(java.lang.Object object)
Invoke the XPath 'string' function on the argument.

Parameters:
object - the argument to convert to a string. Cannot be null
Returns:
the result of the XPath 'string' function.
Throws:
java.lang.NullPointerException - if object is null.

xpathBoolean

public static boolean xpathBoolean(java.lang.Object object)
Invoke the XPath 'boolean' function on the argument.

Parameters:
object - the argument to convert to a boolean. Cannot be null
Returns:
the result of the XPath 'boolean' function.
Throws:
java.lang.NullPointerException - if object is null.

xpathNumber

public static double xpathNumber(java.lang.Object object)
Invoke the XPath 'number' function on the argument.

Parameters:
object - the argument to convert to a number (double). Cannot be null
Returns:
the result of the XPath 'number' function.
Throws:
java.lang.NullPointerException - if object is null.

Copyright 2006 IBM Corporation and others.
All Rights Reserved.