|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.ivata.mask.field.DefaultFieldValueConvertorFactory
| Constructor Summary | |
DefaultFieldValueConvertorFactory()
Constructor. |
|
| Method Summary | |
static java.lang.Class |
convertPrimitiveType(java.lang.Class type)
Convert a primitive type (such as int, char) to
the wrapper class associated with it (such as Integer,
Character). |
FieldValueConvertor |
getFieldValueConvertorForClass(java.lang.Class fieldValueClass)
Find the appropriate convertor for the field value class provided. |
protected FieldValueConvertor |
getFieldValueConvertorForClass(java.lang.Class originalClass,
java.lang.Class fieldValueClassParam)
Find the appropriate convertor for the field value class provided. |
void |
setFieldValueConvertor(java.lang.Class fieldClass,
FieldValueConvertor convertor)
Set the field value convertor to use for a particular class. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public DefaultFieldValueConvertorFactory()
| Method Detail |
public static java.lang.Class convertPrimitiveType(java.lang.Class type)
throws com.ivata.mask.util.SystemException
int, char) to
the wrapper class associated with it (such as Integer,
Character).
type - The type to be converted.
javax.servlet.ServletException - if an unknown type is encountered.
com.ivata.mask.util.SystemException
public FieldValueConvertor getFieldValueConvertorForClass(java.lang.Class fieldValueClass)
throws com.ivata.mask.util.SystemException
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.
getFieldValueConvertorForClass in interface FieldValueConvertorFactoryfieldValueClass - Class of the field value we are tryinh to convert
from a string.
com.ivata.mask.util.SystemException - thrown if there is a class in the hierarchy
for which we have no field value convertor.
protected FieldValueConvertor getFieldValueConvertorForClass(java.lang.Class originalClass,
java.lang.Class fieldValueClassParam)
throws com.ivata.mask.util.SystemException
Find the appropriate convertor for the field value class provided. This method goes thro' all the parents till it finds a suitable convertor.
originalClass - original class we searched for (used in error reporting).
javax.servlet.ServletException - thrown if there is a class in the hierarchy
for which we have no field value convertor.
com.ivata.mask.util.SystemException
public void setFieldValueConvertor(java.lang.Class fieldClass,
FieldValueConvertor convertor)
Set the field value convertor to use for a particular class.
setFieldValueConvertor in interface FieldValueConvertorFactoryfieldClass - class to be converted.convertor - convertor to use for this class.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||