Class AttributedStringImpl

All Implemented Interfaces:
AttributeExtensibleXMLObject, XSString, XMLObject, AttributedString, IdBearing, WSSecurityObject
Direct Known Subclasses:
EncodedStringImpl, PasswordImpl, UsernameImpl

public class AttributedStringImpl
extends AbstractWSSecurityObject
implements AttributedString
Implementation of AttributedString.
  • Field Details

    • value

      private String value
      The string value.
    • id

      private String id
      The wsu:Id attribute value.
    • attributes

      private AttributeMap attributes
      The wildcard attributes.
  • Constructor Details

    • AttributedStringImpl

      public AttributedStringImpl​(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

    • 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