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)
      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
      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