Class PolicyImpl

All Implemented Interfaces:
AttributeExtensibleXMLObject, XMLObject, OperatorContentType, Policy, WSPolicyObject, IdBearing

public class PolicyImpl
extends OperatorContentTypeImpl
implements Policy
PolicyImpl.
  • Field Details

    • id

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

      private String name
      The Name attribute value.
    • unknownAttributes

      private AttributeMap unknownAttributes
      Wildcard attributes.
  • Constructor Details

    • PolicyImpl

      protected PolicyImpl​(String namespaceURI, String elementLocalName, String namespacePrefix)
      Constructor.
      Parameters:
      namespaceURI - The namespace of the element
      elementLocalName - The local name of the element
      namespacePrefix - The namespace prefix of the element
  • Method Details

    • getName

      public String getName()
      Returns the wsp:Policy/@Name attribute value.
      Specified by:
      getName in interface Policy
      Returns:
      the Name attribute value or null.
    • setName

      public void setName​(String newName)
      Sets the wsp:Policy/@Name attribute value.
      Specified by:
      setName in interface Policy
      Parameters:
      newName - the Name attribute value to set.
    • 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