Class ExtendedFieldHandler<T>
java.lang.Object
org.exolab.castor.mapping.loader.FieldHandlerFriend<T>
org.exolab.castor.mapping.ExtendedFieldHandler<T>
- All Implemented Interfaces:
FieldHandler<T>
- Direct Known Subclasses:
AbstractFieldHandler
An extended version of the FieldHandler interface which is used for adding
additional functionality while preserving backward compatibility.
- Version:
- $Revision: 9062 $ $Date: 2005-08-03 15:11:51 -0600 (Wed, 03 Aug 2005) $
- Author:
- Keith Visco
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcheckValidity(Object object) Deprecated.No longer supportedabstract ObjectnewInstance(Object parent, Object[] args) Creates a new instance of the object described by this field.Methods inherited from class FieldHandlerFriend
getFieldDescriptor, setFieldDescriptorModifier and TypeMethodDescriptionprotected abstract FieldDescriptorReturns the FieldDescriptor for the field that this handler is responsible for, or null if no FieldDescriptor has been set.abstract voidsetFieldDescriptor(FieldDescriptor fieldDesc) Sets the FieldDescriptor that this FieldHander is responsibile for.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface FieldHandler
getValue, newInstance, resetValue, setValueModifier and TypeMethodDescriptionReturns the value of the field from the object.newInstance(Object parent) Creates a new instance of the object described by this field.voidresetValue(Object object) Sets the value of the field to a default value.voidSets the value of the field on the object.
-
Constructor Details
-
ExtendedFieldHandler
public ExtendedFieldHandler()
-
-
Method Details
-
checkValidity
Deprecated.No longer supported- Specified by:
checkValidityin interfaceFieldHandler<T>- Specified by:
checkValidityin classFieldHandlerFriend<T>- Throws:
ValidityExceptionIllegalStateException
-
newInstance
Creates a new instance of the object described by this field.- Parameters:
parent- The object for which the field is createdargs- the set of constructor arguments- Returns:
- A new instance of the field's value
- Throws:
IllegalStateException- This field is a simple type and cannot be instantiated
-