Class EPPRegistryZoneMember

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

public class EPPRegistryZoneMember extends Object implements EPPCodecComponent
Class that represents a related zone member that includes a type and zone name attribute.
See Also:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
    Constant for the phase local name
    static final String
    Constant for the qualified name (prefix and local name)
    static final String
    Constant where domain names of the zone can only be created when the primary domain name exists.
    static final String
    Constant where there is no concept of primary and alternate domain names, so the related zones are treated as equal.
    static final String
    Constant where all domain names in the zone MUST be a primary domain name.
    static final String
    Constant where a domain name in the zone can be either a primary or alternate domain name based on the earliest created date.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Default constructor.
    EPPRegistryZoneMember(String aZoneName, String aType)
    Constructor that takes the required attributes including the zone name and the type of the zone member.
  • Method Summary

    Modifier and Type
    Method
    Description
    Clone EPPRegistryZoneMember.
    void
    decode(Element aElement)
    Decode the EPPRegistryZoneMember element aElement DOM Element tree.
    encode(Document aDocument)
    Encode a DOM Element tree from the attributes of the EPPRegistryZoneMember instance.
    boolean
    equals(Object aObject)
    implements a deep EPPRegistryZoneMember compare.
    Returns the XML namespace associated with the EPPCodecComponent.
    Gets the type of the related zone.
    Gets the zone name of the related zone.
    void
    setType(String aType)
    Sets the type of the related zone.
    void
    setZoneName(String aZoneName)
    Sets the zone name of the related zone.
    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

    • ELM_LOCALNAME

      public static final String ELM_LOCALNAME
      Constant for the phase local name
      See Also:
    • ELM_NAME

      public static final String ELM_NAME
      Constant for the qualified name (prefix and local name)
      See Also:
    • TYPE_PRIMARY

      public static final String TYPE_PRIMARY
      Constant where all domain names in the zone MUST be a primary domain name.
      See Also:
    • TYPE_ALTERNATE

      public static final String TYPE_ALTERNATE
      Constant where domain names of the zone can only be created when the primary domain name exists.
      See Also:
    • TYPE_PRIMARY_BASED_ON_CR_DATE

      public static final String TYPE_PRIMARY_BASED_ON_CR_DATE
      Constant where a domain name in the zone can be either a primary or alternate domain name based on the earliest created date.
      See Also:
    • TYPE_EQUAL

      public static final String TYPE_EQUAL
      Constant where there is no concept of primary and alternate domain names, so the related zones are treated as equal. Domain names can be created and deleted in any order.
      See Also:
  • Constructor Details

    • EPPRegistryZoneMember

      public EPPRegistryZoneMember()
      Default constructor. Both the type and the zoneName MUST be set.
    • EPPRegistryZoneMember

      public EPPRegistryZoneMember(String aZoneName, String aType)
      Constructor that takes the required attributes including the zone name and the type of the zone member.
      Parameters:
      aZoneName - Name of the zone.
      aType - Type of the zone member using one of the TYPE constants.
  • Method Details

    • encode

      public Element encode(Document aDocument) throws EPPEncodeException
      Encode a DOM Element tree from the attributes of the EPPRegistryZoneMember 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 EPPRegistryZoneMember instance.
      Throws:
      EPPEncodeException - - Unable to encode EPPRegistryZoneMember instance.
    • decode

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

      public boolean equals(Object aObject)
      implements a deep EPPRegistryZoneMember compare.
      Overrides:
      equals in class Object
      Parameters:
      aObject - EPPRegistryZoneMember instance to compare with
      Returns:
      true if equal; false otherwise
    • clone

      public Object clone() throws CloneNotSupportedException
      Clone EPPRegistryZoneMember.
      Specified by:
      clone in interface EPPCodecComponent
      Overrides:
      clone in class Object
      Returns:
      clone of EPPRegistryZoneMember
      Throws:
      CloneNotSupportedException - standard Object.clone exception
    • 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.
    • getZoneName

      public String getZoneName()
      Gets the zone name of the related zone.
      Returns:
      Zone name if set; null otherwise.
    • setZoneName

      public void setZoneName(String aZoneName)
      Sets the zone name of the related zone.
      Parameters:
      aZoneName - Zone name
    • getType

      public String getType()
      Gets the type of the related zone.
      Returns:
      One of the TYPE constant values if set; null otherwise.
    • setType

      public void setType(String aType)
      Sets the type of the related zone.
      Parameters:
      aType - One of the TYPE constant values.
    • getNamespace

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