Class TransientFieldHandler<T>
java.lang.Object
org.exolab.castor.mapping.loader.FieldHandlerFriend<T>
org.exolab.castor.mapping.ExtendedFieldHandler<T>
org.exolab.castor.mapping.AbstractFieldHandler<T>
org.exolab.castor.mapping.handlers.TransientFieldHandler<T>
- All Implemented Interfaces:
ConfigurableFieldHandler<T>, FieldHandler<T>
A dummy FieldHandler for "transient" fields. This allows us
to create a FieldDescriptor, but not use a real FieldHandler.
- Version:
- $Revision: 9062 $ $Date: 2005-01-17 14:35:07 -0700 (Mon, 17 Jan 2005) $
- Author:
- kvisco
-
Field Summary
Fields inherited from class AbstractFieldHandler
_propertiesModifier and TypeFieldDescriptionprotected PropertiesConfiguration that can be used by subclasses when needed. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of the field from the object.newInstance(Object target) Creates a new instance of the object described by this field.newInstance(Object target, Object[] args) Creates a new instance of the object described by this field.voidresetValue(Object target) Sets the value of the field to a default value.voidSets the value of the field on the object.Methods inherited from class AbstractFieldHandler
getFieldDescriptor, hasValue, setConfiguration, setFieldDescriptorModifier and TypeMethodDescriptionprotected final FieldDescriptorReturns the FieldDescriptor for the field that this handler is responsible for, or null if no FieldDescriptor has been set.booleanReturns true if the "handled" field has a value within the given object.voidsetConfiguration(Properties config) Empty implementation of theConfigurableFieldHandlerinterface, for convenience purpose.voidsetFieldDescriptor(FieldDescriptor fieldDesc) Sets the FieldDescriptor that this FieldHander is responsibile for.Methods inherited from class ExtendedFieldHandler
checkValidityModifier and TypeMethodDescriptionvoidcheckValidity(Object object) Deprecated.No longer supported
-
Constructor Details
-
TransientFieldHandler
public TransientFieldHandler()
-
-
Method Details
-
getValue
Description copied from interface:FieldHandlerReturns the value of the field from the object.- Parameters:
target- The object- Returns:
- The value of the field
-
newInstance
Description copied from interface:FieldHandlerCreates a new instance of the object described by this field.- Parameters:
target- The object for which the field is created- Returns:
- A new instance of the field's value
-
newInstance
Description copied from class:ExtendedFieldHandlerCreates a new instance of the object described by this field.- Specified by:
newInstancein classExtendedFieldHandler<T>- Parameters:
target- The object for which the field is createdargs- the set of constructor arguments- Returns:
- A new instance of the field's value
-
setValue
Description copied from interface:FieldHandlerSets the value of the field on the object.- Parameters:
target- The object.value- The new value.
-
resetValue
Description copied from interface:FieldHandlerSets the value of the field to a default value.Reference fields are set to null, primitive fields are set to their default value, collection fields are emptied of all elements.
- Parameters:
target- The object.
-