Package org.apache.commons.jxpath.ri
Class InfoSetUtil
java.lang.Object
org.apache.commons.jxpath.ri.InfoSetUtil
Type conversions, XPath style.
- Version:
- $Revision: 652845 $ $Date: 2008-05-02 12:46:46 -0500 (Fri, 02 May 2008) $
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanbooleanValue(Object object) Converts the supplied object to boolean.static doubledoubleValue(Object object) Converts the supplied object to double.static NumberConverts the supplied object to Number.static StringstringValue(Object object) Converts the supplied object to String.
-
Field Details
-
ZERO
-
ONE
-
NOT_A_NUMBER
-
-
Constructor Details
-
InfoSetUtil
public InfoSetUtil()
-
-
Method Details
-
stringValue
Converts the supplied object to String.- Parameters:
object- to convert- Returns:
- String value
-
number
Converts the supplied object to Number.- Parameters:
object- to convert- Returns:
- Number result
-
doubleValue
Converts the supplied object to double.- Parameters:
object- to convert- Returns:
- double
-
booleanValue
Converts the supplied object to boolean.- Parameters:
object- to convert- Returns:
- boolean
-