Package org.apache.commons.jxpath.ri
Class InfoSetUtil
java.lang.Object
org.apache.commons.jxpath.ri.InfoSetUtil
Type conversions, XPath style.
-
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.
-
Constructor Details
-
InfoSetUtil
Deprecated.Will be private in the next major version.Constructs a new instance.
-
-
Method Details
-
booleanValue
Converts the supplied object to boolean.- Parameters:
object- to convert- Returns:
- boolean
-
doubleValue
Converts the supplied object to double.- Parameters:
object- to convert- Returns:
- double
-
number
Converts the supplied object to Number.- Parameters:
object- to convert- Returns:
- Number result
-
stringValue
Converts the supplied object to String.- Parameters:
object- to convert- Returns:
- String value
-