Class EPPStatusSetCreate

java.lang.Object
com.verisign.epp.codec.statusset.v01.EPPStatusSetAuthTokenList
com.verisign.epp.codec.statusset.v01.EPPStatusSetCreate
All Implemented Interfaces:
EPPCodecComponent, Serializable, Cloneable

public class EPPStatusSetCreate extends EPPStatusSetAuthTokenList
Status Set Create Extension that enables a client to pass an optional list of authentication tokens to authorize the create with an optional list of status set names to initially assign.
See Also:
  • Field Details

  • Constructor Details

    • EPPStatusSetCreate

      public EPPStatusSetCreate()
      Default constructor for EPPStatusSetCreate.
    • EPPStatusSetCreate

      public EPPStatusSetCreate(String aStatusSet)
      Constructor for EPPStatusSetCreate that assigns a single status set.
      Parameters:
      aStatusSet - A single status set name
    • EPPStatusSetCreate

      public EPPStatusSetCreate(List<EPPAuthTokenData> aAuthTokens, List<String> aStatusSets)
      Constructor for EPPStatusSetCreate that a list of authentication tokens and a list of status sets to initially set.
      Parameters:
      aAuthTokens - A list of authentication tokens. Can be set to null
      aStatusSets - A list of status sets to initially set
    • EPPStatusSetCreate

      public EPPStatusSetCreate(EPPAuthTokenData aAuthToken)
      Constructor for EPPStatusSetCreate that takes a single authentication token.
      Parameters:
      aAuthToken - A single authentication token
    • EPPStatusSetCreate

      public EPPStatusSetCreate(List<EPPAuthTokenData> aAuthTokens)
      Constructor for EPPStatusSetCreate that a list of authentication token.
      Parameters:
      aAuthTokens - A list of authentication tokens
  • Method Details

    • getLocalName

      protected String getLocalName()
      Returns the local name "create" for the create extension.
      Specified by:
      getLocalName in class EPPStatusSetAuthTokenList
      Returns:
      Local name "create" for the create extension.
    • hasStatusSets

      public boolean hasStatusSets()
      Are the status sets defined?
      Returns:
      true if the status sets are defined; false otherwise.
    • getStatusSets

      public List<String> getStatusSets()
      Gets the list of status sets if defined.
      Returns:
      List of status sets if defined; empty list otherwise.
    • addStatusSet

      public void addStatusSet(String aStatusSet)
      Adds a status set to the list of status sets.
      Parameters:
      aStatusSet - The status set to add.
    • setStatusSets

      public void setStatusSets(List<String> aStatusSets)
      Sets the list of status sets.
      Parameters:
      aStatusSets - The status sets to set.
    • encode

      public Element encode(Document aDocument) throws EPPEncodeException
      Encode of a EPPStatusSetCreate instance
      Specified by:
      encode in interface EPPCodecComponent
      Overrides:
      encode in class EPPStatusSetAuthTokenList
      Parameters:
      aDocument - DOM Document, which acts is an Element factory
      Returns:
      Element Root element associated with the object
      Throws:
      EPPEncodeException - Error encoding EPPStatusSetCreate
    • decode

      public void decode(Element aElement) throws EPPDecodeException
      Decode a DOM element tree to initialize the instance attributes. The aElement argument represents the root DOM element and is used to traverse the DOM nodes for instance attribute values.
      Specified by:
      decode in interface EPPCodecComponent
      Overrides:
      decode in class EPPStatusSetAuthTokenList
      Parameters:
      aElement - Element to decode
      Throws:
      EPPDecodeException - Error decoding Element
    • equals

      public boolean equals(Object aObject)
      Compare an instance of EPPStatusSetCreate with this instance.
      Overrides:
      equals in class EPPStatusSetAuthTokenList
      Parameters:
      aObject - Object to compare with.
      Returns:
      true if equal; false otherwise.
    • clone

      public Object clone() throws CloneNotSupportedException
      clone an EPPCodecComponent.
      Specified by:
      clone in interface EPPCodecComponent
      Overrides:
      clone in class EPPStatusSetAuthTokenList
      Returns:
      clone of concrete EPPStatusSetExtension
      Throws:
      CloneNotSupportedException - standard Object.clone exception
    • getNamespace

      public String getNamespace()
      Returns the XML namespace associated with the EPPCodecComponent.
      Returns:
      XML namespace for the EPPCodecComponent.