Class EPPRegistrySupportedStatus

java.lang.Object
com.verisign.epp.codec.registry.v02.EPPRegistrySupportedStatus
All Implemented Interfaces:
EPPCodecComponent, Serializable, Cloneable

public class EPPRegistrySupportedStatus extends Object implements EPPCodecComponent
This class holds a List of supported status used in EPPRegistryDomain, EPPRegistryHost and EPPRegistryContact, as per RFC 5731, 5732 and 5733, respectively.
See Also:
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
    Constants for the supported statuses.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
    XML local name for EPPRegistrySupportedStatus.
    static final String
    XML root tag for EPPRegistrySupportedStatus.
    static final String
    XML Element Name of status attribute.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    addStatus(String status)
    Add one status to an existing List.
    Clone EPPRegistrySupportedStatus.
    void
    decode(Element aElement)
    Decode the EPPRegistrySupportedStatus attributes from the aElement DOM Element tree.
    encode(Document aDocument)
    Encode a DOM Element tree from the attributes of the EPPRegistrySupportedStatus instance.
    boolean
    equals(Object aObject)
    implements a deep EPPRegistrySupportedStatus compare.
    Returns the XML namespace associated with the EPPCodecComponent.
    Gets the List of statuses.
    boolean
    Is there any statuses set?
    void
    setStatuses(List statuses)
    Sets the List of statuses.
    Implementation of Object.toString, which will result in an indented XML String representation of the concrete EPPCodecComponent.

    Methods inherited from class java.lang.Object

    finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

  • Constructor Details

    • EPPRegistrySupportedStatus

      public EPPRegistrySupportedStatus()
  • Method Details

    • encode

      public Element encode(Document aDocument) throws EPPEncodeException
      Encode a DOM Element tree from the attributes of the EPPRegistrySupportedStatus instance.
      Specified by:
      encode in interface EPPCodecComponent
      Parameters:
      aDocument - DOM Document that is being built. Used as an Element factory.
      Returns:
      Element Root DOM Element representing the EPPRegistrySupportedStatus instance.
      Throws:
      EPPEncodeException - - Unable to encode EPPRegistrySupportedStatus instance.
    • decode

      public void decode(Element aElement) throws EPPDecodeException
      Decode the EPPRegistrySupportedStatus attributes from the aElement DOM Element tree.
      Specified by:
      decode in interface EPPCodecComponent
      Parameters:
      aElement - Root DOM Element to decode EPPRegistrySupportedStatus from.
      Throws:
      EPPDecodeException - Unable to decode aElement
    • clone

      public Object clone() throws CloneNotSupportedException
      Clone EPPRegistrySupportedStatus.
      Specified by:
      clone in interface EPPCodecComponent
      Overrides:
      clone in class Object
      Returns:
      clone of EPPRegistrySupportedStatus
      Throws:
      CloneNotSupportedException - standard Object.clone exception
    • equals

      public boolean equals(Object aObject)
      implements a deep EPPRegistrySupportedStatus compare.
      Overrides:
      equals in class Object
      Parameters:
      aObject - EPPRegistrySupportedStatus instance to compare with
      Returns:
      true if this object is the same as the aObject argument; false otherwise
    • 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.
    • hasStatuses

      public boolean hasStatuses()
      Is there any statuses set?
      Returns:
      true if there is at least one status set.
    • getStatuses

      public List getStatuses()
      Gets the List of statuses.
      Returns:
      List of statuses in String
    • setStatuses

      public void setStatuses(List statuses)
      Sets the List of statuses.
      Parameters:
      statuses - List of statuses in String
    • addStatus

      public void addStatus(String status)
      Add one status to an existing List.
      Parameters:
      status - status String
    • getNamespace

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