|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.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>
public class TransientFieldHandler<T>
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 | |
|---|---|
T |
getValue(Object target)
Returns the value of the field from the object. |
T |
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 T getValue(Object target)
FieldHandler
target - The object
public T newInstance(Object target)
FieldHandler
target - The object for which the field is created
public Object newInstance(Object target,
Object[] args)
ExtendedFieldHandler
newInstance in class ExtendedFieldHandler<T>target - The object for which the field is createdargs - the set of constructor arguments
public void setValue(Object target,
Object value)
FieldHandler
target - The object.value - The new value.public void resetValue(Object target)
FieldHandlerReference fields are set to null, primitive fields are set to their default value, collection fields are emptied of all elements.
target - The object.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||