com.ivata.mask.field
Interface FieldValueConvertorFactory

All Known Implementing Classes:
DefaultFieldValueConvertorFactory

public interface FieldValueConvertorFactory

Creates an appropriate field value convertor for a given property type.

Since:
ivata masks 0.6 (2005-03-17)
Version:
$Revision: 1.1 $
Author:
Colin MacLeod colin.macleod@ivata.com

Method Summary
 FieldValueConvertor getFieldValueConvertorForClass(java.lang.Class fieldValueClass)
           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.
 

Method Detail

getFieldValueConvertorForClass

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.

Parameters:
fieldValueClass - Class of the field value we are tryinh to convert from a string.
Returns:
value field value convertor.
Throws:
com.ivata.mask.util.SystemException - thrown if there is a class in the hierarchy for which we have no field value convertor.

setFieldValueConvertor

public void setFieldValueConvertor(java.lang.Class fieldClass,
                                   FieldValueConvertor convertor)

Set the field value convertor to use for a particular class.

Parameters:
fieldClass - class to be converted.
convertor - convertor to use for this class.


Copyright © 2001-2005 ivata limited. All Rights Reserved.