public abstract class DateTimeValueConstruct extends ValueConstruct
DateTime value. The
class is abstract, derive from this class and define default constructor
which hardcodes the node name.AbstractExtension.AttributesHandlerattrNamelocalName, namespace| Constructor and Description |
|---|
DateTimeValueConstruct(java.lang.String nodeName)
Constructs
ValueConstruct to represent DateTime value. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object rhs)
Compares
DateTimeValueConstruct objects based on the date/time
value that they hold. |
DateTime |
getDateTime()
Get date/time value.
|
int |
hashCode()
Returns hash code that is based on the date/time value that the object
holds.
|
void |
setDateTime(DateTime value)
Set date/time value.
|
void |
setValue(java.lang.String value)
Override
ValueConstruct.setValue(String) to validate that
supplied value is valid date. |
consumeAttributes, generate, getHandler, getValue, hasValue, isRequired, putAttributes, setRequireddisableStrictValidation, enableStrictValidation, eq, generate, generateAttributes, getExtensionLocalName, getExtensionNamespace, isImmutable, isStrictValidation, sameClassAs, setImmutable, throwExceptionForMissingAttribute, throwExceptionIfImmutable, validatepublic DateTimeValueConstruct(java.lang.String nodeName)
ValueConstruct to represent DateTime value.public boolean equals(java.lang.Object rhs)
DateTimeValueConstruct objects based on the date/time
value that they hold.equals in class ValueConstructpublic int hashCode()
hashCode in class ValueConstructpublic void setValue(java.lang.String value)
ValueConstruct.setValue(String) to validate that
supplied value is valid date.setValue in class ValueConstructvalue - new value for the value construct or null to reset.java.lang.NullPointerException - if argument is null.java.lang.IllegalArgumentException - if argument is not a valid date.public void setDateTime(DateTime value)
java.lang.NullPointerException - if argument is null.public DateTime getDateTime()