org.exolab.castor.types
Class MonthDescriptor.MonthFieldHandler
- MonthDescriptor
- ConfigurableFieldHandler, FieldHandler
(package private) class MonthDescriptor.MonthFieldHandler
A specialized FieldHandler for the XML Schema Month related types
$Revision: 6553 $ $Date: 2005-03-05 06:42:06 -0700 (Sat, 05 Mar 2005) $
void | checkValidity(Object object) - Checks the field validity.
|
Object | getValue(Object target) - Returns the value of the field associated with this descriptor from
the given target object.
|
Object | newInstance(Object parent) - 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 associated with this descriptor.
|
MonthFieldHandler
public MonthFieldHandler()
Creates a new TimeFieldHandler
getValue
public Object getValue(Object target)
throws java.lang.IllegalStateException
Returns the value of the field associated with this descriptor from
the given target object.
- getValue in interface FieldHandler
- getValue in interface XMLFieldHandler
target
- the object to get the value from
- the value of the field associated with this descriptor from
the given target object.
newInstance
public Object newInstance(Object parent)
throws IllegalStateException
Creates a new instance of the object described by this field.
- newInstance in interface FieldHandler
- newInstance in interface XMLFieldHandler
parent
- The object for which the field is created
- A new instance of the field's value
resetValue
public void resetValue(Object target)
throws java.lang.IllegalStateException
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.
- resetValue in interface FieldHandler
- resetValue in interface XMLFieldHandler
setValue
public void setValue(Object target,
Object value)
throws java.lang.IllegalStateException
Sets the value of the field associated with this descriptor.
- setValue in interface FieldHandler
- setValue in interface XMLFieldHandler
target
- the object in which to set the valuevalue
- the value of the field
Intalio Inc. (C) 1999-2008. All rights reserved http://www.intalio.com