public class EPPDomainContact extends java.lang.Object implements EPPCodecComponent
EPPDomainContact.TYPE_ constants. A contact has a type and a
name that must be known to the EPP Server. | Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
TYPE_ADMINISTRATIVE
Administrative Domain Contact
|
static java.lang.String |
TYPE_BILLING
Billing Domain Contact
|
static java.lang.String |
TYPE_TECHNICAL
Technical Domain Contact
|
| Constructor and Description |
|---|
EPPDomainContact()
Default constructor for EPPDomainContact.
|
EPPDomainContact(java.lang.String aName,
java.lang.String aType)
EPPDomainContact which takes all attributes as arguments (name, type).
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
clone()
Clone
EPPDomainContact. |
void |
decode(org.w3c.dom.Element aElement)
Decode the EPPDomainContact 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 EPPDomainContact
instance.
|
boolean |
equals(java.lang.Object aObject)
implements a deep
EPPDomainContact compare. |
java.lang.String |
getName()
Gets the contact name
|
java.lang.String |
getNamespace()
Returns the XML namespace associated with the
EPPCodecComponent. |
java.lang.String |
getType()
Gets the contact type.
|
void |
setName(java.lang.String aName)
Sets the contact name.
|
void |
setType(java.lang.String aType)
Sets the contact type to one of the
EPPDomainContact.TYPE_
constants. |
java.lang.String |
toString()
Implementation of
Object.toString, which will result in an
indented XML String representation of the concrete
EPPCodecComponent. |
public static final java.lang.String TYPE_ADMINISTRATIVE
public static final java.lang.String TYPE_BILLING
public static final java.lang.String TYPE_TECHNICAL
public EPPDomainContact()
null and must be set before invoking encode.public EPPDomainContact(java.lang.String aName,
java.lang.String aType)
aName - Contact NameaType - Contact Type, which should be a
EPPDomainContact.TYPE_ constant.public java.lang.String getName()
public void setName(java.lang.String aName)
aName - Contact Namepublic java.lang.String getType()
public void setType(java.lang.String aType)
EPPDomainContact.TYPE_
constants.aType - EPPDomainContact.TYPE_ constant.public org.w3c.dom.Element encode(org.w3c.dom.Document aDocument)
throws EPPEncodeException
encode in interface EPPCodecComponentaDocument - - DOM Document that is being built. Used as an Element
factory.EPPEncodeException - - Unable to encode EPPDomainContact
instance.public void decode(org.w3c.dom.Element aElement)
throws EPPDecodeException
decode in interface EPPCodecComponentaElement - - Root DOM Element to decode EPPDomainContact from.EPPDecodeException - - Unable to decode aElement.public boolean equals(java.lang.Object aObject)
EPPDomainContact compare.equals in class java.lang.ObjectaObject - EPPDomainContact instance to compare withpublic java.lang.Object clone()
throws java.lang.CloneNotSupportedException
EPPDomainContact.clone in interface EPPCodecComponentclone in class java.lang.ObjectEPPDomainContactjava.lang.CloneNotSupportedException - standard Object.clone exceptionpublic java.lang.String toString()
Object.toString, which will result in an
indented XML String representation of the concrete
EPPCodecComponent.toString in class java.lang.ObjectString if successful;
ERROR otherwise.public java.lang.String getNamespace()
EPPCodecComponent.getNamespace in interface EPPCodecComponentEPPCodecComponent.Copyright © VeriSign Inc. All Rights Reserved.