Class AttributedDateTimeImpl

All Implemented Interfaces:
AttributeExtensibleXMLObject, XSString, XMLObject, AttributedDateTime, IdBearing, WSSecurityObject
Direct Known Subclasses:
CreatedImpl, ExpiresImpl

public class AttributedDateTimeImpl extends AbstractWSSecurityObject implements AttributedDateTime
Implementation of AttributedDateTime.
  • Field Details

    • dateTimeValue

      private Instant dateTimeValue
      DateTime object.
    • stringValue

      private String stringValue
      String dateTime representation.
    • id

      private String id
      wsu:id attribute value.
    • unknownAttributes

      private AttributeMap unknownAttributes
      Wildcard attributes.
  • Constructor Details

    • AttributedDateTimeImpl

      public AttributedDateTimeImpl(String namespaceURI, String elementLocalName, String namespacePrefix)
      namespaceURI - namespace of the element
      elementLocalName - name of the element
      namespacePrefix - namespace prefix of the element
  • Method Details

    • getDateTime

      public Instant getDateTime()
      Returns the Instant content or attribute value.
      Specified by:
      getDateTime in interface AttributedDateTime
      the Instant object.
    • setDateTime

      public void setDateTime(Instant newDateTime)
      Sets the Instant content or attribute value.
      Specified by:
      setDateTime in interface AttributedDateTime
      newDateTime - the Instant object to set.
    • getValue

      public String getValue()
      Gets the string.
      Specified by:
      getValue in interface XSString
      the string
    • setValue

      public void setValue(String newValue)
      Sets the string.
      Specified by:
      setValue in interface XSString
      newValue - the string value
    • getWSUId

      public String getWSUId()
      Returns the @wsu:Id attribute value.
      Specified by:
      getWSUId in interface IdBearing
      The @wsu:Id attribute value or null.
    • setWSUId

      public void setWSUId(String newId)
      Sets the @wsu:Id attribute value.
      Specified by:
      setWSUId in interface IdBearing
      newId - The @wsu:Id attribute value
    • getUnknownAttributes

      public AttributeMap getUnknownAttributes()
      Gets a mutable map of the attributes. The map key is the namespace qualified name of the attribute, the map value is the value of the attribute.
      Specified by:
      getUnknownAttributes in interface AttributeExtensibleXMLObject
      a map of the attributes