public class XSDateTimeImpl extends AbstractXMLObject 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.
|
detach, getDOM, getElementQName, getIDIndex, getNamespaceManager, getNamespaces, getNoNamespaceSchemaLocation, getObjectMetadata, getParent, getSchemaLocation, getSchemaType, hasChildren, hasParent, isNil, isNilXSBoolean, manageQualifiedAttributeNamespace, prepareAttributeValueForAssignment, prepareElementContentForAssignment, prepareForAssignment, prepareForAssignment, prepareForAssignment, registerOwnID, releaseChildrenDOM, releaseDOM, releaseParentDOM, releaseThisAndChildrenDOM, releaseThisandParentDOM, resolveID, resolveIDFromRoot, setDOM, setElementNamespacePrefix, setElementQName, setNil, setNil, setNoNamespaceSchemaLocation, setParent, setSchemaLocation, setSchemaType
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
detach, getDOM, getElementQName, getIDIndex, getNamespaceManager, getNamespaces, getNoNamespaceSchemaLocation, getObjectMetadata, getParent, getSchemaLocation, getSchemaType, hasChildren, hasParent, isNil, isNilXSBoolean, releaseChildrenDOM, releaseDOM, releaseParentDOM, resolveID, resolveIDFromRoot, setDOM, setNil, setNil, setNoNamespaceSchemaLocation, setParent, setSchemaLocation
private 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 XSDateTime
public void setValue(DateTime newValue)
setValue
in interface XSDateTime
newValue
- the dateTime valuepublic List<XMLObject> getOrderedChildren()
getOrderedChildren
in interface XMLObject
public DateTimeFormatter getDateTimeFormatter()
DateTimeFormatter
to be used when stringifying
the DateTime
value.
Defaults to the formatter constructed by calling:
ISODateTimeFormat.dateTime().withChronology(org.joda.time.chrono.ISOChronology.getInstanceUTC())
getDateTimeFormatter
in interface XSDateTime
public void setDateTimeFormatter(DateTimeFormatter newFormatter)
DateTimeFormatter
to be used when stringifying
the DateTime
value.setDateTimeFormatter
in interface XSDateTime
newFormatter
- the new formatterCopyright © 1999–2015 JBoss by Red Hat. All rights reserved.