| java.lang.Object com.ivata.mask.field.DefaultFieldValueConvertorFactory
Method Summary | |
public static Class | convertPrimitiveType(Class type) Convert a primitive type (such as int , char ) to
the wrapper class associated with it (such as Integer ,
Character ).
Parameters: type - The type to be converted. | public FieldValueConvertor | getFieldValueConvertorForClass(Class fieldValueClass)
Find the appropriate convertor for the field value class provided.
This method goes thro' all the parent classes of the class provided
till it finds a suitable convertor.
Parameters: fieldValueClass - Class of the field value we are tryinh to convertfrom a string. | protected FieldValueConvertor | getFieldValueConvertorForClass(Class originalClass, Class fieldValueClassParam)
Find the appropriate convertor for the field value class provided.
This method goes thro' all the parents till it finds a suitable
convertor.
Parameters: originalClass - original class we searched for (used in error reporting). Parameters: fieldValueClassParam - class of the field value to convert. | public void | setFieldValueConvertor(Class fieldClass, FieldValueConvertor convertor)
Set the field value convertor to use for a particular class. |
DefaultFieldValueConvertorFactory | public DefaultFieldValueConvertorFactory()(Code) | | Constructor.
|
convertPrimitiveType | public static Class convertPrimitiveType(Class type) throws SystemException(Code) | | Convert a primitive type (such as int , char ) to
the wrapper class associated with it (such as Integer ,
Character ).
Parameters: type - The type to be converted. Wrapper class for the type provided. throws: SystemException - if an unknown type is encountered. |
getFieldValueConvertorForClass | public FieldValueConvertor getFieldValueConvertorForClass(Class fieldValueClass) throws SystemException(Code) | |
Find the appropriate convertor for the field value class provided.
This method goes thro' all the parent classes of the class provided
till it finds a suitable convertor.
Parameters: fieldValueClass - Class of the field value we are tryinh to convertfrom a string. value field value convertor. throws: SystemException - thrown if there is a class in the hierarchyfor which we have no field value convertor. |
getFieldValueConvertorForClass | protected FieldValueConvertor getFieldValueConvertorForClass(Class originalClass, Class fieldValueClassParam) throws SystemException(Code) | |
Find the appropriate convertor for the field value class provided.
This method goes thro' all the parents till it finds a suitable
convertor.
Parameters: originalClass - original class we searched for (used in error reporting). Parameters: fieldValueClassParam - class of the field value to convert. value field value convertor. throws: SystemException - thrown if there is a class in the hierarchyfor which we have no field value convertor. |
setFieldValueConvertor | public void setFieldValueConvertor(Class fieldClass, FieldValueConvertor convertor)(Code) | |
Set the field value convertor to use for a particular class.
Parameters: fieldClass - class to be converted. Parameters: convertor - convertor to use for this class. |
|
|