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)
      Constructor.
      Parameters:
      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
      Returns:
      the Instant object.
    • setDateTime

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

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

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

      public String getWSUId()
      Returns the @wsu:Id attribute value.
      Specified by:
      getWSUId in interface IdBearing
      Returns:
      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
      Parameters:
      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
      Returns:
      a map of the attributes