public class JXPath11CompatibleTypeConverter extends BasicTypeConverter
NodeSet
decoding. Suggested by JIRA issue JXPATH-10.Constructor and Description |
---|
JXPath11CompatibleTypeConverter() |
Modifier and Type | Method and Description |
---|---|
boolean |
canConvert(Object object,
Class toType)
Returns true if it can convert the supplied
object to the specified class.
|
Object |
convert(Object object,
Class toType)
Converts the supplied object to the specified
type.
|
allocateCollection, allocateNumber, canCreateCollection, convertNullToPrimitive, convertStringToPrimitive, unmodifiableCollection
public boolean canConvert(Object object, Class toType)
BasicTypeConverter
canConvert
in interface TypeConverter
canConvert
in class BasicTypeConverter
object
- to checktoType
- prospective destination classpublic Object convert(Object object, Class toType)
BasicTypeConverter
convert
in interface TypeConverter
convert
in class BasicTypeConverter
object
- to converttoType
- destination classCopyright © 2001–2015 The Apache Software Foundation. All rights reserved.