Class EPPStatusSetInfData

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

public class EPPStatusSetInfData extends Object implements EPPCodecComponent
Status Status Info Data Extension that extends the object info response with status set information.
See Also:
  • Field Details

  • Constructor Details

    • EPPStatusSetInfData

      public EPPStatusSetInfData()
      Default constructor for EPPStatusSetInfData.
    • EPPStatusSetInfData

      public EPPStatusSetInfData(EPPStatusSet aStatusSet)
      Constructor for EPPStatusSetInfData that takes a single authentication token.
      Parameters:
      aStatusSet - A single status set
    • EPPStatusSetInfData

      public EPPStatusSetInfData(List<EPPStatusSet> aStatusSets)
      Constructor for EPPStatusSetInfData that a list of status sets.
      Parameters:
      aStatusSets - A list of status sets. Set to null to unset.
  • Method Details

    • getLocalName

      protected String getLocalName()
      Returns the local name "infData" for the info response extension.
      Returns:
      Local name "infData" for the info response extension.
    • hasStatusSets

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

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

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

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

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

      public void decode(Element aElement) throws EPPDecodeException
      Populate the data of this instance with the data stored in the given Element of the DOM tree
      Specified by:
      decode in interface EPPCodecComponent
      Parameters:
      aElement - The root element of the report fragment of XML
      Throws:
      EPPDecodeException - Thrown if any errors occur during decoding.
    • equals

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

      public Object clone() throws CloneNotSupportedException
      A deep clone of the EPPStatusSetInfData.
      Specified by:
      clone in interface EPPCodecComponent
      Overrides:
      clone in class Object
      Returns:
      clone of concrete EPPCodecComponent
      Throws:
      CloneNotSupportedException - standard Object.clone exception
      See Also:
    • toString

      public String toString()
      Implementation of Object.toString, which will result in an indented XML String representation of the concrete EPPCodecComponent.
      Overrides:
      toString in class Object
      Returns:
      Indented XML String if successful; ERROR otherwise.
    • getNamespace

      public String getNamespace()
      Returns the XML namespace associated with the EPPCodecComponent.
      Specified by:
      getNamespace in interface EPPCodecComponent
      Returns:
      XML namespace for the EPPCodecComponent.