|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.exolab.castor.mapping.loader.FieldHandlerFriend
org.exolab.castor.mapping.ExtendedFieldHandler
org.exolab.castor.mapping.AbstractFieldHandler
org.exolab.castor.mapping.handlers.TransientFieldHandler
public class TransientFieldHandler
A dummy FieldHandler for "transient" fields. This allows us to create a FieldDescriptor, but not use a real FieldHandler
Constructor Summary | |
---|---|
TransientFieldHandler()
|
Method Summary | |
---|---|
java.lang.Object |
getValue(java.lang.Object target)
Returns the value of the field from the object. |
java.lang.Object |
newInstance(java.lang.Object target)
Creates a new instance of the object described by this field. |
java.lang.Object |
newInstance(java.lang.Object target,
java.lang.Object[] args)
Creates a new instance of the object described by this field. |
void |
resetValue(java.lang.Object target)
Sets the value of the field to a default value. |
void |
setValue(java.lang.Object target,
java.lang.Object value)
Sets the value of the field on the object. |
Methods inherited from class org.exolab.castor.mapping.AbstractFieldHandler |
---|
getFieldDescriptor, hasValue, setFieldDescriptor |
Methods inherited from class org.exolab.castor.mapping.ExtendedFieldHandler |
---|
checkValidity |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TransientFieldHandler()
Method Detail |
---|
public java.lang.Object getValue(java.lang.Object target)
AbstractFieldHandler
getValue
in interface FieldHandler
getValue
in class AbstractFieldHandler
target
- The object
public java.lang.Object newInstance(java.lang.Object target)
AbstractFieldHandler
newInstance
in interface FieldHandler
newInstance
in class AbstractFieldHandler
target
- The object for which the field is created
public java.lang.Object newInstance(java.lang.Object target, java.lang.Object[] args)
AbstractFieldHandler
newInstance
in class AbstractFieldHandler
target
- The object for which the field is createdargs
- the set of constructor arguments
public void setValue(java.lang.Object target, java.lang.Object value)
AbstractFieldHandler
setValue
in interface FieldHandler
setValue
in class AbstractFieldHandler
target
- The objectvalue
- The new valuepublic void resetValue(java.lang.Object target)
AbstractFieldHandler
Reference fields are set to null, primitive fields are set to their default value, collection fields are emptied of all elements.
resetValue
in interface FieldHandler
resetValue
in class AbstractFieldHandler
target
- The object
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |