Class EPPRegistryContactAddress

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

public class EPPRegistryContactAddress extends Object implements EPPCodecComponent
Represents the address information policy information. The <registry:address> element contains the following child elements:
  • <registry:street> - The minimum and maximum length and the minimum and maximum number of the <contact:street> elements defined in RFC 5733
  • <registry:city> - The minimum and maximum length of the <contact:city> element defined in RFC 5733 using the <registry:minLength> and <registry:maxLength> child elements, respectively.
  • <registry:sp> - The minimum and maximum length of the <contact:sp> element defined in RFC 5733 using the <registry:minLength> and <registry:maxLength> child elements, respectively.
  • <registry:pc> - The minimum and maximum length of the <contact:pc> element defined in RFC 5733 using the <registry:minLength> and <registry:maxLength> child elements, respectively
See Also:
  • Field Details

  • Constructor Details

    • EPPRegistryContactAddress

      public EPPRegistryContactAddress()
  • Method Details

    • encode

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

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

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

      public boolean equals(Object aObject)
      implements a deep EPPRegistryContactAddress compare.
      Overrides:
      equals in class Object
      Parameters:
      aObject - EPPRegistryContactAddress 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.
    • getCity

      public EPPRegistryContactCity getCity()
      Gets the contact city attributes.
      Returns:
      instance of EPPRegistryContactCity that specifies the minimum and maximum length of the <contact:city> element defined in RFC 5733 using the <registry:minLength> and <registry:maxLength> child elements, respectively
    • setCity

      public void setCity(EPPRegistryContactCity city)
      Sets the contact city attributes.
      Parameters:
      city - instance of EPPRegistryContactCity that specifies the minimum and maximum length of the <contact:city> element defined in RFC 5733 using the <registry:minLength> and <registry:maxLength> child elements, respectively
    • getStateProvince

      public EPPRegistryContactStateProvince getStateProvince()
      Gets the contact state/province attributes.
      Returns:
      instance of EPPRegistryContactStateProvince that specifies the minimum and maximum length of the <contact:sp> element defined in RFC 5733 using the <registry:minLength> and <registry:maxLength> child elements, respectively
    • setStateProvince

      public void setStateProvince(EPPRegistryContactStateProvince stateProvince)
      Sets the contact state/province attributes.
      Parameters:
      stateProvince - instance of EPPRegistryContactStateProvince that specifies the minimum and maximum length of the <contact:sp> element defined in RFC 5733 using the <registry:minLength> and <registry:maxLength> child elements, respectively
    • getPostalCode

      public EPPRegistryContactPostalCode getPostalCode()
      Gets the contact postal code attributes.
      Returns:
      instance of EPPRegistryContactPostalCode that specifies the minimum and maximum length of the <contact:pc> element defined in RFC 5733 using the <registry:minLength> and <registry:maxLength> child elements, respectively
    • setPostalCode

      public void setPostalCode(EPPRegistryContactPostalCode postalCode)
      Sets the contact postal code attributes.
      Parameters:
      postalCode - instance of EPPRegistryContactPostalCode that specifies the minimum and maximum length of the <contact:pc> element defined in RFC 5733 using the <registry:minLength> and <registry:maxLength> child elements, respectively
    • getStreet

      public EPPRegistryContactStreet getStreet()
      Gets the contact street attributes.
      Returns:
      instance of EPPRegistryContactStreet that specifies the The minimum and maximum length and the minimum and maximum number of the <contact:street> elements defined in RFC 5733
    • setStreet

      public void setStreet(EPPRegistryContactStreet street)
      Sets the contact street attributes.
      Parameters:
      street - instance of EPPRegistryContactStreet that specifies the The minimum and maximum length and the minimum and maximum number of the <contact:street> elements defined in RFC 5733
    • getNamespace

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