com.verisign.epp.codec.reseller
Class EPPResellerContact

java.lang.Object
  extended by com.verisign.epp.codec.reseller.EPPResellerContact
All Implemented Interfaces:
EPPCodecComponent, java.io.Serializable, java.lang.Cloneable

public class EPPResellerContact
extends java.lang.Object
implements EPPCodecComponent

Represents a reseller contact. The valid contact types are defined by the EPPResellerContact.Type enumeration.

See Also:
Serialized Form

Nested Class Summary
static class EPPResellerContact.Type
          Contact type enumeration.
 
Field Summary
static java.lang.String ELM_LOCALNAME
          XML local name for EPPResellerContact.
static java.lang.String ELM_NAME
          XML root tag for EPPResellerContact.
 
Constructor Summary
EPPResellerContact()
          Default constructor for EPPResellerContact.
EPPResellerContact(java.lang.String aContactId, EPPResellerContact.Type aType)
          EPPResellerContact that takes all attributes as arguments (contactId and type).
 
Method Summary
 java.lang.Object clone()
          Clone EPPResellerContact.
 void decode(org.w3c.dom.Element aElement)
          Decode the EPPResellerContact attributes from the aElement DOM Element tree.
 org.w3c.dom.Element encode(org.w3c.dom.Document aDocument)
          Encode a DOM Element tree from the attributes of the EPPResellerContact instance.
 boolean equals(java.lang.Object aObject)
          implements a deep EPPResellerContact compare.
 java.lang.String getContactId()
          Gets the contact identifier of the contact.
 EPPResellerContact.Type getType()
          Gets the contact type using the EPPResellerContact.Type enumeration.
 void setContactId(java.lang.String aContactId)
          Sets the contact identifier of the contact.
 void setType(EPPResellerContact.Type aType)
          Sets the contact type using the EPPResellerContact.Type enumeration.
 java.lang.String toString()
          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 Detail

ELM_LOCALNAME

public static final java.lang.String ELM_LOCALNAME
XML local name for EPPResellerContact.

See Also:
Constant Field Values

ELM_NAME

public static final java.lang.String ELM_NAME
XML root tag for EPPResellerContact.

See Also:
Constant Field Values
Constructor Detail

EPPResellerContact

public EPPResellerContact()
Default constructor for EPPResellerContact.


EPPResellerContact

public EPPResellerContact(java.lang.String aContactId,
                          EPPResellerContact.Type aType)
EPPResellerContact that takes all attributes as arguments (contactId and type).

Parameters:
aContactId - Contact Identifier
aType - Contact Type using EPPResellerContact.Type enumeration.
Method Detail

getType

public EPPResellerContact.Type getType()
Gets the contact type using the EPPResellerContact.Type enumeration.

Returns:
Contact type if defined; null otherwise.

setType

public void setType(EPPResellerContact.Type aType)
Sets the contact type using the EPPResellerContact.Type enumeration.

Parameters:
aType - Contact type

getContactId

public java.lang.String getContactId()
Gets the contact identifier of the contact.

Returns:
Contact identifier if defined; null otherwise.

setContactId

public void setContactId(java.lang.String aContactId)
Sets the contact identifier of the contact.

Parameters:
aContactId - Contact identifier of the contact

encode

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

decode

public void decode(org.w3c.dom.Element aElement)
            throws EPPDecodeException
Decode the EPPResellerContact attributes from the aElement DOM Element tree.

Specified by:
decode in interface EPPCodecComponent
Parameters:
aElement - Root DOM Element to decode EPPResellerContact from.
Throws:
EPPDecodeException - Unable to decode aElement.

equals

public boolean equals(java.lang.Object aObject)
implements a deep EPPResellerContact compare.

Overrides:
equals in class java.lang.Object
Parameters:
aObject - EPPResellerContact instance to compare with
Returns:
DOCUMENT ME!

clone

public java.lang.Object clone()
                       throws java.lang.CloneNotSupportedException
Clone EPPResellerContact.

Specified by:
clone in interface EPPCodecComponent
Overrides:
clone in class java.lang.Object
Returns:
clone of EPPResellerContact
Throws:
java.lang.CloneNotSupportedException - standard Object.clone exception

toString

public java.lang.String toString()
Implementation of Object.toString, which will result in an indented XML String representation of the concrete EPPCodecComponent.

Overrides:
toString in class java.lang.Object
Returns:
Indented XML String if successful; ERROR otherwise.


Copyright © VeriSign Inc. All Rights Reserved.