List of all members.
Detailed Description
A dummy FieldHandler for "transient" fields. This allows us to create a FieldDescriptor, but not use a real FieldHandler
- Author:
- kvisco
- Revision:
- 1.1
- Date:
- 2005/01/17 21:35:07
Constructor & Destructor Documentation
org.exolab.castor.mapping.handlers.TransientFieldHandler.TransientFieldHandler |
( |
|
) |
|
Member Function Documentation
Object org.exolab.castor.mapping.handlers.TransientFieldHandler.getValue |
( |
Object |
object |
) |
[virtual] |
Returns the value of the field from the object.
- Parameters:
-
- Returns:
- The value of the field
- Exceptions:
-
| IllegalStateException | The Java object has changed and is no longer supported by this handler, or the handler is not compatiable with the Java object |
Implements org.exolab.castor.mapping.AbstractFieldHandler.
Object org.exolab.castor.mapping.handlers.TransientFieldHandler.newInstance |
( |
Object |
parent |
) |
[virtual] |
Creates a new instance of the object described by this field.
- Parameters:
-
| parent | The object for which the field is created |
- Returns:
- A new instance of the field's value
- Exceptions:
-
| IllegalStateException | This field is a simple type and cannot be instantiated |
Implements org.exolab.castor.mapping.AbstractFieldHandler.
Object org.exolab.castor.mapping.handlers.TransientFieldHandler.newInstance |
( |
Object |
parent, |
|
|
Object[] |
args | |
|
) |
| | [virtual] |
Creates a new instance of the object described by this field.
- Parameters:
-
| parent | The object for which the field is created |
| args | the set of constructor arguments |
- Returns:
- A new instance of the field's value
- Exceptions:
-
| IllegalStateException | This field is a simple type and cannot be instantiated |
Implements org.exolab.castor.mapping.AbstractFieldHandler.
void org.exolab.castor.mapping.handlers.TransientFieldHandler.resetValue |
( |
Object |
object |
) |
[virtual] |
Sets 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:
-
- Exceptions:
-
| IllegalStateException | The Java object has changed and is no longer supported by this handler, or the handler is not compatiable with the Java object |
Implements org.exolab.castor.mapping.AbstractFieldHandler.
void org.exolab.castor.mapping.handlers.TransientFieldHandler.setValue |
( |
Object |
object, |
|
|
Object |
value | |
|
) |
| | [virtual] |
Sets the value of the field on the object.
- Parameters:
-
| object | The object |
| value | The new value |
- Exceptions:
-
| IllegalStateException | The Java object has changed and is no longer supported by this handler, or the handler is not compatiable with the Java object IllegalArgumentException The value passed is not of a supported type |
Implements org.exolab.castor.mapping.AbstractFieldHandler.
The documentation for this class was generated from the following file: