Package org.apache.commons.jxpath.ri
Class InfoSetUtil
- java.lang.Object
-
- org.apache.commons.jxpath.ri.InfoSetUtil
-
public class InfoSetUtil extends Object
Type conversions, XPath style.- Version:
- $Revision: 652845 $ $Date: 2008-05-02 12:46:46 -0500 (Fri, 02 May 2008) $
- Author:
- Dmitri Plotnikov
-
-
Constructor Summary
Constructors Constructor Description InfoSetUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static booleanbooleanValue(Object object)Converts the supplied object to boolean.static doubledoubleValue(Object object)Converts the supplied object to double.static Numbernumber(Object object)Converts the supplied object to Number.static StringstringValue(Object object)Converts the supplied object to String.
-
-
-
Method Detail
-
stringValue
public static String stringValue(Object object)
Converts the supplied object to String.- Parameters:
object- to convert- Returns:
- String value
-
number
public static Number number(Object object)
Converts the supplied object to Number.- Parameters:
object- to convert- Returns:
- Number result
-
doubleValue
public static double doubleValue(Object object)
Converts the supplied object to double.- Parameters:
object- to convert- Returns:
- double
-
booleanValue
public static boolean booleanValue(Object object)
Converts the supplied object to boolean.- Parameters:
object- to convert- Returns:
- boolean
-
-