Class EPPMarkAddress

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

public class EPPMarkAddress extends Object implements EPPCodecComponent
Class for an address within an EPPMarkContact.
See Also:
  • Field Details

  • Constructor Details

    • EPPMarkAddress

      public EPPMarkAddress()
      Default constructor for EPPMarkAddress.
    • EPPMarkAddress

      public EPPMarkAddress(List<String> aStreets, String aCity, String aSp, String aPc, String aCc)
      Constructor that takes all of the EPPMarkAddress attributes.
      Parameters:
      aStreets - Streets of the contact.
      aCity - City of the contact
      aSp - State or Province of the contact
      aPc - Postal Code of the contact
      aCc - Country code of the contact
  • Method Details

    • clone

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

      public Element encode(Document aDocument) throws EPPEncodeException
      Sets all this instance's data in the given XML document
      Specified by:
      encode in interface EPPCodecComponent
      Parameters:
      aDocument - a DOM Document to attach data to.
      Returns:
      The root element of this component.
      Throws:
      EPPEncodeException - Thrown if any errors prevent encoding.
    • decode

      public void decode(Element aElement) throws EPPDecodeException
      Decode the EPPMark component
      Specified by:
      decode in interface EPPCodecComponent
      Parameters:
      aElement - Root element of the EPPMark
      Throws:
      EPPDecodeException - Error decoding the EPPMark
    • equals

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

      public List<String> getStreets()
      Gets the contact's street address.
      Returns:
      List of street lines if set; Empty list otherwise.
    • setStreets

      public void setStreets(List<String> aStreets)
      Sets the contact's street address. There can be update to three lines of the streets address.
      Parameters:
      aStreets - Zero to three street lines.
    • addStreet

      public void addStreet(String aStreet)
      Add a street line to the contact street address. This will add a street to the end of the list of street lines.
      Parameters:
      aStreet - A line of the contact street address.
    • getCity

      public String getCity()
      Gets the city of the contact.
      Returns:
      The city of the contact if set; null otherwise.
    • setCity

      public void setCity(String aCity)
      Sets the city of the contact.
      Parameters:
      aCity - City of the contact.
    • getSp

      public String getSp()
      Gets the City or Province of the contact.
      Returns:
      City or Province of the contact if set; null otherwise.
    • setSp

      public void setSp(String aSp)
      Sets the City or Province of the contact.
      Parameters:
      aSp - City or Province of the contact.
    • getPc

      public String getPc()
      Gets the Postal Code of the contact.
      Returns:
      Postal Code of the contact if set; null otherwise.
    • setPc

      public void setPc(String aPc)
      Sets the Postal Code of the contact.
      Parameters:
      aPc - Postal Code of the contact.
    • getCc

      public String getCc()
      Gets the country code of the contact.
      Returns:
      Country code of the contact if set; null otherwise.
    • setCc

      public void setCc(String aCc)
      Sets the country code of the contact.
      Parameters:
      aCc - Country code of the contact.
    • 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.