Class EPPRegistryDomainContact

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

public class EPPRegistryDomainContact extends EPPRegistryMinMax
Defines the miniumum and maximum numbers of contacts by contact type. The contact type is defined with the required "type" attribute with the possible values of "admin", "tech", and "billing". The <registry:contact> element contains the following child elements

See Also:
  • Field Details

  • Constructor Details

    • EPPRegistryDomainContact

      public EPPRegistryDomainContact()
      Default constructor of EPPRegistryDomainContact. All attributes are set to null. Must call setType(String) and EPPRegistryMinMax.setMin(Integer) before calling encode(Document).
    • EPPRegistryDomainContact

      public EPPRegistryDomainContact(String type, Integer min, Integer max)
      Constructor an EPPRegistryDomainContact with type, min and max.
      Parameters:
      type - type of contact
      min - minimum number of contact entries.
      max - maximum number of contact entries.
    • EPPRegistryDomainContact

      public EPPRegistryDomainContact(String type, int min, int max)
      Constructor an EPPRegistryDomainContact with type, min and max.
      Parameters:
      type - type of contact
      min - minimum number of contact entries.
      max - maximum number of contact entries.
  • Method Details

    • encode

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

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

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

      public boolean equals(Object aObject)
      implements a deep EPPRegistryDomainContact compare.
      Overrides:
      equals in class EPPRegistryMinMax
      Parameters:
      aObject - EPPRegistryDomainContact instance to compare with
      Returns:
      true if this object is the same as the aObject argument; false otherwise
    • getRootName

      public String getRootName()
      Return the root name of the XML element.
      Overrides:
      getRootName in class EPPRegistryMinMax
      Returns:
      EPPRegistryDomainContact.ELM_NAME
    • 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 EPPRegistryMinMax
      Returns:
      Indented XML String if successful; ERROR otherwise.
    • getType

      public String getType()
      Get type of contact.
      Returns:
      type of contact
    • setType

      public void setType(String type)
      Set type of contact.
      Parameters:
      type - type of contact