org.exolab.castor.mapping
Class ExtendedFieldHandler<T>

java.lang.Object
  extended by org.exolab.castor.mapping.loader.FieldHandlerFriend<T>
      extended by org.exolab.castor.mapping.ExtendedFieldHandler<T>
All Implemented Interfaces:
FieldHandler<T>
Direct Known Subclasses:
AbstractFieldHandler

public abstract class ExtendedFieldHandler<T>
extends FieldHandlerFriend<T>

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:
FieldDescriptor, FieldHandler

Constructor Summary
ExtendedFieldHandler()
           
 
Method Summary
 void checkValidity(Object object)
          Deprecated. No longer supported
abstract  Object newInstance(Object parent, Object[] args)
          Creates a new instance of the object described by this field.
 
Methods inherited from class org.exolab.castor.mapping.loader.FieldHandlerFriend
getFieldDescriptor, setFieldDescriptor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.exolab.castor.mapping.FieldHandler
getValue, newInstance, resetValue, setValue
 

Constructor Detail

ExtendedFieldHandler

public ExtendedFieldHandler()
Method Detail

checkValidity

public void checkValidity(Object object)
                   throws ValidityException,
                          IllegalStateException
Deprecated. No longer supported

Specified by:
checkValidity in interface FieldHandler<T>
Specified by:
checkValidity in class FieldHandlerFriend<T>
Throws:
ValidityException
IllegalStateException

newInstance

public abstract Object newInstance(Object parent,
                                   Object[] args)
                            throws IllegalStateException
Creates a new instance of the object described by this field.

Parameters:
parent - The object for which the field is created
args - 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


Copyright © 2013. All Rights Reserved.