public class AttributedDateTimeImpl extends AbstractWSSecurityObject implements AttributedDateTime
AttributedDateTime.| Modifier and Type | Field and Description |
|---|---|
private org.joda.time.DateTime |
dateTimeValue
DateTime object.
|
private org.joda.time.format.DateTimeFormatter |
formatter
DateTime formatter.
|
private java.lang.String |
id
wsu:id attribute value.
|
private java.lang.String |
stringValue
String dateTime representation.
|
private AttributeMap |
unknownAttributes
Wildcard attributes.
|
DEFAULT_DATETIME_FORMAT, TYPE_LOCAL_NAME, TYPE_NAMEWSU_ID_ATTR_LOCAL_NAME, WSU_ID_ATTR_NAME| Constructor and Description |
|---|
AttributedDateTimeImpl(java.lang.String namespaceURI,
java.lang.String elementLocalName,
java.lang.String namespacePrefix)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
org.joda.time.DateTime |
getDateTime()
Returns the DateTime content or attribute value.
|
org.joda.time.format.DateTimeFormatter |
getDateTimeFormatter()
Get the
DateTimeFormatter to be used when stringifying
the DateTime value. |
AttributeMap |
getUnknownAttributes()
Gets a mutable map of the attributes.
|
java.lang.String |
getValue()
Gets the string.
|
java.lang.String |
getWSUId()
Returns the
@wsu:Id attribute value. |
void |
setDateTime(org.joda.time.DateTime newDateTime)
Sets the DateTime content or attribute value.
|
void |
setDateTimeFormatter(org.joda.time.format.DateTimeFormatter newFormatter)
Set the
DateTimeFormatter to be used when stringifying
the DateTime value. |
void |
setValue(java.lang.String newValue)
Sets the string.
|
void |
setWSUId(java.lang.String newId)
Sets the
@wsu:Id attribute value. |
getOrderedChildrendetach, 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, setSchemaTypeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdetach, getDOM, getElementQName, getIDIndex, getNamespaceManager, getNamespaces, getNoNamespaceSchemaLocation, getObjectMetadata, getOrderedChildren, getParent, getSchemaLocation, getSchemaType, hasChildren, hasParent, isNil, isNilXSBoolean, releaseChildrenDOM, releaseDOM, releaseParentDOM, resolveID, resolveIDFromRoot, setDOM, setNil, setNil, setNoNamespaceSchemaLocation, setParent, setSchemaLocationprivate org.joda.time.format.DateTimeFormatter formatter
private org.joda.time.DateTime dateTimeValue
private java.lang.String stringValue
private java.lang.String id
private AttributeMap unknownAttributes
public AttributedDateTimeImpl(java.lang.String namespaceURI,
java.lang.String elementLocalName,
java.lang.String namespacePrefix)
namespaceURI - namespace of the elementelementLocalName - name of the elementnamespacePrefix - namespace prefix of the elementpublic org.joda.time.DateTime getDateTime()
getDateTime in interface AttributedDateTimeDateTime object.public void setDateTime(org.joda.time.DateTime newDateTime)
setDateTime in interface AttributedDateTimenewDateTime - the DateTime object to set.public java.lang.String getValue()
public void setValue(java.lang.String newValue)
public java.lang.String getWSUId()
@wsu:Id attribute value.public void setWSUId(java.lang.String newId)
@wsu:Id attribute value.public AttributeMap getUnknownAttributes()
getUnknownAttributes in interface AttributeExtensibleXMLObjectpublic org.joda.time.format.DateTimeFormatter getDateTimeFormatter()
DateTimeFormatter to be used when stringifying
the DateTime value.
Defaults to the formatter constructed by calling:
ISODateTimeFormat.dateTime().withChronology(ISOChronology.getInstanceUTC()
getDateTimeFormatter in interface AttributedDateTimepublic void setDateTimeFormatter(org.joda.time.format.DateTimeFormatter newFormatter)
DateTimeFormatter to be used when stringifying
the DateTime value.
Defaults to the formatter constructed by calling:
ISODateTimeFormat.dateTime().withChronology(ISOChronology.getInstanceUTC()
setDateTimeFormatter in interface AttributedDateTimenewFormatter - the new formatter