public interface TypeConverter
TypeUtils
to introduce
additional type conversions for JXPath. Most of
the time BasicTypeConverter
should be used as the superclass.TypeUtils.setTypeConverter(org.apache.commons.jxpath.util.TypeConverter)
Modifier and Type | Method and Description |
---|---|
boolean |
canConvert(java.lang.Object object,
java.lang.Class toType)
Returns true if it can convert the supplied
object to the specified class.
|
java.lang.Object |
convert(java.lang.Object object,
java.lang.Class toType)
Converts the supplied object to the specified
type.
|
boolean canConvert(java.lang.Object object, java.lang.Class toType)
object
- object to testtoType
- target classjava.lang.Object convert(java.lang.Object object, java.lang.Class toType)
object
- object to converttoType
- target class