| java.lang.Object org.exolab.castor.mapping.loader.ExtendedFieldHandler org.exolab.castor.mapping.AbstractFieldHandler org.exolab.castor.mapping.loader.FieldHandlerImpl
FieldHandlerImpl | public FieldHandlerImpl(FieldHandler handler, TypeInfo typeInfo)(Code) | | Construct a new field handler for the specified field. The field must
be public, and may not be static or transient. The field name is
determined from the Java field, the type from the type information.
Parameters: handler - Parameters: typeInfo - Type information |
FieldHandlerImpl | public FieldHandlerImpl(Field field, TypeInfo typeInfo) throws MappingException(Code) | | Construct a new field handler for the specified field. The field must
be public, and may not be static or transient. The field name is
determined from the Java field, the type from the type information.
Parameters: field - The field being described Parameters: typeInfo - Type information throws: MappingException - If the field is not public, is static ortransient |
FieldHandlerImpl | public FieldHandlerImpl(String fieldName, Method[] getSequence, Method[] setSequence, Method getMethod, Method setMethod, TypeInfo typeInfo) throws MappingException(Code) | | Construct a new field handler for the specified field that
is accessed through the accessor methods (get/set). The accessor
methods must be public and not static. The field name is
required for descriptive purposes. The field type must match
the return value of the get method and the single parameter of
the set method. Either get or set methods are optional.
Parameters: fieldName - The field being described Parameters: getMethod - The method used to retrieve the field value,must accept no parameters and have a return type castable tothe field type Parameters: setMethod - The method used to set the field value, mustaccept a single parameter that is castable to the field type Parameters: typeInfo - Type information throws: MappingException - If the get or set method are not public,are static, or do not specify the proper types |
isCollection | public boolean isCollection()(Code) | | Return true if the field is a collection.
|
newInstance | public Object newInstance(Object parent) throws IllegalStateException(Code) | | Creates a new instance of the object described by this field.
Parameters: parent - The object for which the field is created A new instance of the field's value throws: IllegalStateException - This field is a simple type andcannot be instantiated |
newInstance | public Object newInstance(Object parent, Object[] args) throws IllegalStateException(Code) | | Creates a new instance of the object described by this field.
Parameters: parent - The object for which the field is created Parameters: args - the set of constructor arguments A new instance of the field's value throws: IllegalStateException - This field is a simple type andcannot be instantiated |
setConvertFrom | public void setConvertFrom(TypeConvertor convertor)(Code) | | Sets the TypeConvertor used during calls to getValue
Parameters: convertor - the TypeConvertor to use during callsto getValue |
setConvertTo | public void setConvertTo(TypeConvertor convertor)(Code) | | Sets the TypeConvertor used during calls to setValue
Parameters: convertor - the TypeConvertor to use during callsto setValue |
|
|