public class JXPath11CompatibleTypeConverter extends BasicTypeConverter
NodeSet
decoding. Suggested by JIRA issue JXPATH-10.BasicTypeConverter.ValueNodeSet, BasicTypeConverter.ValuePointer
Constructor and Description |
---|
JXPath11CompatibleTypeConverter() |
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.
|
allocateCollection, allocateNumber, canCreateCollection, convertNullToPrimitive, convertStringToPrimitive, unmodifiableCollection
public boolean canConvert(java.lang.Object object, java.lang.Class toType)
BasicTypeConverter
canConvert
in interface TypeConverter
canConvert
in class BasicTypeConverter
object
- to checktoType
- prospective destination classpublic java.lang.Object convert(java.lang.Object object, java.lang.Class toType)
BasicTypeConverter
convert
in interface TypeConverter
convert
in class BasicTypeConverter
object
- to converttoType
- destination class