Class EPPEmailFwdContact

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

public class EPPEmailFwdContact extends Object implements EPPCodecComponent
Represents a emailFwd contact. The valid contact types are defined by the EPPEmailFwdContact.TYPE_ constants. A contact has a type and a name that must be known to the EPP Server.
See Also:
  • Field Details

  • Constructor Details

    • EPPEmailFwdContact

      public EPPEmailFwdContact()
      Default constructor for EPPEmailFwdContact. The attribute default to null and must be set before invoking encode.
    • EPPEmailFwdContact

      public EPPEmailFwdContact(String aName, String aType)
      EPPEmailFwdContact which takes all attributes as arguments (name, type).
      Parameters:
      aName - Contact Name
      aType - Contact Type, which should be a EPPEmailFwdContact.TYPE_ constant.
  • Method Details

    • getName

      public String getName()
      Gets the contact name
      Returns:
      Contact Name
    • setName

      public void setName(String aName)
      Sets the contact name.
      Parameters:
      aName - Contact Name
    • getType

      public String getType()
      Gets the contact type.
      Returns:
      DOCUMENT ME!
    • setType

      public void setType(String aType)
      Sets the contact type to one of the EPPEmailFwdContact.TYPE_ constants.
      Parameters:
      aType - EPPEmailFwdContact.TYPE_ constant.
    • encode

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

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

      public boolean equals(Object aObject)
      implements a deep EPPEmailFwdContact compare.
      Overrides:
      equals in class Object
      Parameters:
      aObject - EPPEmailFwdContact instance to compare with
      Returns:
      DOCUMENT ME!
    • clone

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

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