ConfigurableFieldHandler
, FieldHandler
class DateTimeDescriptor.DateTimeFieldHandler extends XMLFieldHandler
_properties
Constructor | Description |
---|---|
DateTimeFieldHandler() |
Creates a new TimeFieldHandler.
|
Modifier and Type | Method | Description |
---|---|---|
void |
checkValidity(java.lang.Object object) |
Checks the field validity.
|
java.lang.Object |
getValue(java.lang.Object target) |
Returns the value of the field associated with this descriptor from
the given target object.
|
java.lang.Object |
newInstance(java.lang.Object parent) |
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 associated with this descriptor.
|
getFieldDescriptor, hasValue, setConfiguration, setFieldDescriptor
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
equals, newInstance
public DateTimeFieldHandler()
public java.lang.Object getValue(java.lang.Object target) throws java.lang.IllegalStateException
getValue
in interface FieldHandler
getValue
in class XMLFieldHandler
target
- the object to get the value fromjava.lang.IllegalStateException
- if the target value is an inappropriate class, is null,
or returns a String() on toString() that fails validation.public void setValue(java.lang.Object target, java.lang.Object value) throws java.lang.IllegalStateException
setValue
in interface FieldHandler
setValue
in class XMLFieldHandler
target
- the object in which to set the value.value
- the value of the field.java.lang.IllegalStateException
- if the target value is an inappropriate class, is null,
or returns a String() on toString() that fails validation.public void resetValue(java.lang.Object target) throws java.lang.IllegalStateException
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 XMLFieldHandler
target
- The objectjava.lang.IllegalStateException
- The Java object has changed and
is no longer supported by this handler, or the handler is not
compatiable with the Java objectpublic void checkValidity(java.lang.Object object) throws ValidityException, java.lang.IllegalStateException
checkValidity
in interface FieldHandler
checkValidity
in class ExtendedFieldHandler
object
- The objectValidityException
- The field is invalid, is required and null, or any other
validity violationjava.lang.IllegalStateException
- The Java object has changed and is no longer supported by
this handler, or the handler is not compatiable with the
Java objectpublic java.lang.Object newInstance(java.lang.Object parent) throws java.lang.IllegalStateException
newInstance
in interface FieldHandler
newInstance
in class XMLFieldHandler
parent
- The object for which the field is createdjava.lang.IllegalStateException
- neverIntalio Inc. (C) 1999-2008. All rights reserved http://www.intalio.com