ConfigurableFieldHandler
, FieldHandler
public class TransientFieldHandler extends AbstractFieldHandler
_properties
Constructor | Description |
---|---|
TransientFieldHandler() |
Modifier and Type | Method | Description |
---|---|---|
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.
|
getFieldDescriptor, hasValue, setConfiguration, setFieldDescriptor
checkValidity
checkValidity
public java.lang.Object getValue(java.lang.Object target)
FieldHandlerFriend
getValue
in interface FieldHandler
getValue
in class FieldHandlerFriend
target
- The objectFieldHandler.getValue(java.lang.Object)
public java.lang.Object newInstance(java.lang.Object target)
FieldHandlerFriend
newInstance
in interface FieldHandler
newInstance
in class FieldHandlerFriend
target
- The object for which the field is createdFieldHandler.newInstance(java.lang.Object)
public java.lang.Object newInstance(java.lang.Object target, java.lang.Object[] args)
ExtendedFieldHandler
newInstance
in class ExtendedFieldHandler
target
- The object for which the field is createdargs
- the set of constructor argumentsExtendedFieldHandler.newInstance(java.lang.Object,
java.lang.Object[])
public void setValue(java.lang.Object target, java.lang.Object value)
FieldHandlerFriend
setValue
in interface FieldHandler
setValue
in class FieldHandlerFriend
target
- The objectvalue
- The new valueFieldHandler.setValue(java.lang.Object, java.lang.Object)
public void resetValue(java.lang.Object target)
FieldHandlerFriend
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 FieldHandlerFriend
target
- The objectFieldHandler.resetValue(java.lang.Object)
Intalio Inc. (C) 1999-2008. All rights reserved http://www.intalio.com