Package com.verisign.epp.codec.domain
Class EPPDomainContact
java.lang.Object
com.verisign.epp.codec.domain.EPPDomainContact
- All Implemented Interfaces:
EPPCodecComponent,Serializable,Cloneable
Represents a domain contact. The valid contact types are defined by the
EPPDomainContact.TYPE_ constants. A contact has a type and a
name that must be known to the EPP Server.- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringXML local name forEPPDomainContact.static final StringXML Element Name ofEPPDomainContactroot element.static final StringAdministrative Domain Contactstatic final StringBilling Domain Contactstatic final StringTechnical Domain Contact -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor for EPPDomainContact.EPPDomainContact(String aName, String aType) EPPDomainContact which takes all attributes as arguments (name, type). -
Method Summary
Modifier and TypeMethodDescriptionclone()CloneEPPDomainContact.voidDecode the EPPDomainContact attributes from the aElement DOM Element tree.Encode a DOM Element tree from the attributes of the EPPDomainContact instance.booleanimplements a deepEPPDomainContactcompare.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 theEPPDomainContact.TYPE_constants.toString()Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.
-
Field Details
-
ELM_LOCALNAME
XML local name forEPPDomainContact.- See Also:
-
ELM_NAME
XML Element Name ofEPPDomainContactroot element.- See Also:
-
TYPE_ADMINISTRATIVE
Administrative Domain Contact- See Also:
-
TYPE_BILLING
Billing Domain Contact- See Also:
-
TYPE_TECHNICAL
Technical Domain Contact- See Also:
-
-
Constructor Details
-
EPPDomainContact
public EPPDomainContact()Default constructor for EPPDomainContact. The attribute default tonulland must be set before invokingencode. -
EPPDomainContact
EPPDomainContact which takes all attributes as arguments (name, type).- Parameters:
aName- Contact NameaType- Contact Type, which should be aEPPDomainContact.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:
- contact type using one of the
TYPEconstants.
-
setType
Sets the contact type to one of theEPPDomainContact.TYPE_constants.- Parameters:
aType-EPPDomainContact.TYPE_constant.
-
encode
Encode a DOM Element tree from the attributes of the EPPDomainContact 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 EPPDomainContact instance.
- Throws:
EPPEncodeException- - Unable to encode EPPDomainContact instance.
-
decode
Decode the EPPDomainContact attributes from the aElement DOM Element tree.- Specified by:
decodein interfaceEPPCodecComponent- Parameters:
aElement- - Root DOM Element to decode EPPDomainContact from.- Throws:
EPPDecodeException- - Unable to decode aElement.
-
equals
implements a deepEPPDomainContactcompare. -
clone
CloneEPPDomainContact.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classObject- Returns:
- clone of
EPPDomainContact - 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.
-