public class XSDateTimeImpl extends AbstractValidatingXMLObject implements XSDateTime
XSDateTime.| Modifier and Type | Field and Description |
|---|---|
private DateTimeFormatter |
formatter
The date time formatter to use.
|
private DateTime |
value
Value of this dateTime element.
|
TYPE_LOCAL_NAME, TYPE_NAME| Modifier | Constructor and Description |
|---|---|
protected |
XSDateTimeImpl(String namespaceURI,
String elementLocalName,
String namespacePrefix)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
DateTimeFormatter |
getDateTimeFormatter()
Get the
DateTimeFormatter to be used when stringifying
the DateTime value. |
List<XMLObject> |
getOrderedChildren()
Gets an unmodifiable list of child elements in the order that they will appear in the DOM.
|
DateTime |
getValue()
Gets the dateTime value.
|
void |
setDateTimeFormatter(DateTimeFormatter newFormatter)
Set the
DateTimeFormatter to be used when stringifying
the DateTime value. |
void |
setValue(DateTime newValue)
Sets the dateTime value.
|
deregisterValidator, getValidators, registerValidator, validate, validateChildrenaddNamespace, detach, getDOM, getElementQName, getIDIndex, getNamespaceManager, getNamespaces, getNoNamespaceSchemaLocation, getParent, getSchemaLocation, getSchemaType, hasChildren, hasParent, isNil, isNilXSBoolean, manageQualifiedAttributeNamespace, prepareAttributeValueForAssignment, prepareElementContentForAssignment, prepareForAssignment, prepareForAssignment, prepareForAssignment, prepareForAssignment, registerOwnID, releaseChildrenDOM, releaseDOM, releaseParentDOM, releaseThisAndChildrenDOM, releaseThisandParentDOM, removeNamespace, resolveID, resolveIDFromRoot, setDOM, setElementNamespacePrefix, setElementQName, setNil, setNil, setNoNamespaceSchemaLocation, setParent, setSchemaLocation, setSchemaTypeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitderegisterValidator, getValidators, registerValidator, validateaddNamespace, detach, getDOM, getElementQName, getIDIndex, getNamespaceManager, getNamespaces, getNoNamespaceSchemaLocation, getParent, getSchemaLocation, getSchemaType, hasChildren, hasParent, isNil, isNilXSBoolean, releaseChildrenDOM, releaseDOM, releaseParentDOM, removeNamespace, resolveID, resolveIDFromRoot, setDOM, setNil, setNil, setNoNamespaceSchemaLocation, setParent, setSchemaLocationprivate DateTime value
private DateTimeFormatter formatter
protected XSDateTimeImpl(String namespaceURI, String elementLocalName, String namespacePrefix)
namespaceURI - the namespace the element is inelementLocalName - the local name of the XML element this Object representsnamespacePrefix - the prefix for the given namespacepublic DateTime getValue()
getValue in interface XSDateTimepublic void setValue(DateTime newValue)
setValue in interface XSDateTimenewValue - the dateTime valuepublic List<XMLObject> getOrderedChildren()
getOrderedChildren in interface XMLObjectpublic DateTimeFormatter getDateTimeFormatter()
DateTimeFormatter to be used when stringifying
the DateTime value.
Defaults to the formatter constructed by calling:
org.joda.time.format.ISODateTimeFormat.dateTime().withChronology(org.joda.time.chrono.ISOChronology.getInstanceUTC()
getDateTimeFormatter in interface XSDateTimepublic void setDateTimeFormatter(DateTimeFormatter newFormatter)
DateTimeFormatter to be used when stringifying
the DateTime value.
Defaults to the formatter constructed by calling:
org.joda.time.format.ISODateTimeFormat.dateTime().withChronology(org.joda.time.chrono.ISOChronology.getInstanceUTC()
setDateTimeFormatter in interface XSDateTimenewFormatter - the new formatterCopyright © 1999-2014. All Rights Reserved.