Package com.verisign.epp.codec.emailFwd
Class EPPEmailFwdContact
java.lang.Object
com.verisign.epp.codec.emailFwd.EPPEmailFwdContact
- All Implemented Interfaces:
EPPCodecComponent,Serializable,Cloneable
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 Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor for EPPEmailFwdContact.EPPEmailFwdContact(String aName, String aType) EPPEmailFwdContact which takes all attributes as arguments (name, type). -
Method Summary
Modifier and TypeMethodDescriptionclone()CloneEPPEmailFwdContact.voidDecode the EPPEmailFwdContact attributes from the aElement DOM Element tree.Encode a DOM Element tree from the attributes of the EPPEmailFwdContact instance.booleanimplements a deepEPPEmailFwdContactcompare.getName()Gets the contact nameReturns the XML namespace associated with theEPPCodecComponent.getType()Gets the contact type.voidSets the contact name.voidSets the contact type to one of theEPPEmailFwdContact.TYPE_constants.toString()Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.
-
Field Details
-
TYPE_ADMINISTRATIVE
Administrative EmailFwd Contact- See Also:
-
TYPE_BILLING
Billing EmailFwd Contact- See Also:
-
TYPE_TECHNICAL
Technical EmailFwd Contact- See Also:
-
-
Constructor Details
-
EPPEmailFwdContact
public EPPEmailFwdContact()Default constructor for EPPEmailFwdContact. The attribute default tonulland must be set before invokingencode. -
EPPEmailFwdContact
EPPEmailFwdContact which takes all attributes as arguments (name, type).- Parameters:
aName- Contact NameaType- Contact Type, which should be aEPPEmailFwdContact.TYPE_constant.
-
-
Method Details
-
getName
Gets the contact name- Returns:
- Contact Name
-
setName
Sets the contact name.- Parameters:
aName- Contact Name
-
getType
Gets the contact type.- Returns:
- DOCUMENT ME!
-
setType
Sets the contact type to one of theEPPEmailFwdContact.TYPE_constants.- Parameters:
aType-EPPEmailFwdContact.TYPE_constant.
-
encode
Encode a DOM Element tree from the attributes of the EPPEmailFwdContact instance.- Specified by:
encodein interfaceEPPCodecComponent- 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
Decode the EPPEmailFwdContact attributes from the aElement DOM Element tree.- Specified by:
decodein interfaceEPPCodecComponent- Parameters:
aElement- - Root DOM Element to decode EPPEmailFwdContact from.- Throws:
EPPDecodeException- - Unable to decode aElement.
-
equals
implements a deepEPPEmailFwdContactcompare. -
clone
CloneEPPEmailFwdContact.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classObject- Returns:
- clone of
EPPEmailFwdContact - Throws:
CloneNotSupportedException- standard Object.clone exception
-
toString
Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent. -
getNamespace
Returns the XML namespace associated with theEPPCodecComponent.- Specified by:
getNamespacein interfaceEPPCodecComponent- Returns:
- XML namespace for the
EPPCodecComponent.
-