|
Joda System API | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.joda.property.impl.PropertyTypeConvertorManager
PropertyTypeConvertorManager is a wrapper around the TypeConvertor package adding Property functionality.
Method Summary | |
java.lang.Object |
convertFromObject(java.lang.Class convertTo,
java.lang.Object object,
java.lang.Object errSource)
Convert an object, typically passed in as a parameter, to the underlying type for this property. |
java.lang.String |
convertToString(java.lang.Class convertFrom,
java.lang.Object object,
java.lang.Object errSource)
Convert an object, typically passed in as a parameter, to the underlying type for this property. |
static PropertyTypeConvertorManager |
getInstance()
Gets the TypeConvertorManager singleton instance. |
TypeConvertor |
getTypeConvertor(java.lang.Class convertorRequired)
Get the type convertor for a particular class. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static PropertyTypeConvertorManager getInstance()
public TypeConvertor getTypeConvertor(java.lang.Class convertorRequired)
convertorRequired
- the class to convert to
public java.lang.Object convertFromObject(java.lang.Class convertTo, java.lang.Object object, java.lang.Object errSource)
convertTo
- the class to convert toobject
- input object
ConversionPropertyException
- if the conversion failspublic java.lang.String convertToString(java.lang.Class convertFrom, java.lang.Object object, java.lang.Object errSource)
object
- input object
ConversionPropertyException
- if the conversion fails
|
Joda System API | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |