|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface TypeConverter
A type converter can be installed on 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)| Method Summary | |
|---|---|
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. |
| Method Detail |
|---|
boolean canConvert(Object object,
Class toType)
object - object to testtoType - target class
Object convert(Object object,
Class toType)
object - object to converttoType - target class
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||