|
||||||||||
| 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
| Field Summary |
|---|
| Fields inherited from class org.exolab.castor.mapping.AbstractFieldHandler |
|---|
_properties |
| Constructor Summary | |
|---|---|
TransientFieldHandler()
|
|
| Method Summary | |
|---|---|
Object |
getValue(Object target)
Returns the value of the field from the object. |
Object |
newInstance(Object target)
Creates a new instance of the object described by this field. |
Object |
newInstance(Object target,
Object[] args)
Creates a new instance of the object described by this field. |
void |
resetValue(Object target)
Sets the value of the field to a default value. |
void |
setValue(Object target,
Object value)
Sets the value of the field on the object. |
| Methods inherited from class org.exolab.castor.mapping.AbstractFieldHandler |
|---|
getFieldDescriptor, hasValue, setConfiguration, 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 |
| Methods inherited from interface org.exolab.castor.mapping.FieldHandler |
|---|
checkValidity |
| Constructor Detail |
|---|
public TransientFieldHandler()
| Method Detail |
|---|
public Object getValue(Object target)
AbstractFieldHandler
getValue in interface FieldHandlergetValue in class AbstractFieldHandlertarget - The object
FieldHandler.getValue(java.lang.Object)public Object newInstance(Object target)
AbstractFieldHandler
newInstance in interface FieldHandlernewInstance in class AbstractFieldHandlertarget - The object for which the field is created
FieldHandler.newInstance(java.lang.Object)
public Object newInstance(Object target,
Object[] args)
AbstractFieldHandler
newInstance in class AbstractFieldHandlertarget - The object for which the field is createdargs - the set of constructor arguments
ExtendedFieldHandler.newInstance(java.lang.Object,
java.lang.Object[])
public void setValue(Object target,
Object value)
AbstractFieldHandler
setValue in interface FieldHandlersetValue in class AbstractFieldHandlertarget - The object.value - The new value.FieldHandler.setValue(java.lang.Object, java.lang.Object)public void resetValue(Object target)
AbstractFieldHandlerReference fields are set to null, primitive fields are set to their default value, collection fields are emptied of all elements.
resetValue in interface FieldHandlerresetValue in class AbstractFieldHandlertarget - The objectFieldHandler.resetValue(java.lang.Object)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||