|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.commons.jxpath.util.BasicTypeConverter
The default implementation of TypeConverter.
Nested Class Summary | |
(package private) static class |
BasicTypeConverter.ValueNodeSet
|
(package private) static class |
BasicTypeConverter.ValuePointer
|
Constructor Summary | |
BasicTypeConverter()
|
Method Summary | |
protected java.util.Collection |
allocateCollection(java.lang.Class type)
|
protected java.lang.Number |
allocateNumber(java.lang.Class type,
double value)
|
boolean |
canConvert(java.lang.Object object,
java.lang.Class toType)
Returns true if it can convert the supplied object to the specified class. |
protected boolean |
canCreateCollection(java.lang.Class type)
|
java.lang.Object |
convert(java.lang.Object object,
java.lang.Class toType)
Converts the supplied object to the specified type. |
protected java.lang.Object |
convertNullToPrimitive(java.lang.Class toType)
|
protected java.lang.Object |
convertStringToPrimitive(java.lang.Object object,
java.lang.Class toType)
|
protected java.util.Collection |
unmodifiableCollection(java.util.Collection collection)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public BasicTypeConverter()
Method Detail |
public boolean canConvert(java.lang.Object object, java.lang.Class toType)
canConvert
in interface TypeConverter
public java.lang.Object convert(java.lang.Object object, java.lang.Class toType)
convert
in interface TypeConverter
protected java.lang.Object convertNullToPrimitive(java.lang.Class toType)
protected java.lang.Object convertStringToPrimitive(java.lang.Object object, java.lang.Class toType)
protected java.lang.Number allocateNumber(java.lang.Class type, double value)
protected boolean canCreateCollection(java.lang.Class type)
protected java.util.Collection allocateCollection(java.lang.Class type)
protected java.util.Collection unmodifiableCollection(java.util.Collection collection)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |