public class EPPValidateContact extends java.lang.Object implements EPPCodecComponent
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ELM_LOCALNAME
XML local name for
EPPValidateContact. |
static java.lang.String |
ELM_NAME
XML root tag for
EPPValidateContact. |
| Constructor and Description |
|---|
EPPValidateContact()
EPPValidateContact default constructor. |
EPPValidateContact(java.lang.String aId,
java.lang.String aContactType,
java.lang.String aTld)
EPPValidateContact default constructor that takes the required
attributes. |
| Modifier and Type | Method and Description |
|---|---|
void |
addKeyValue(EPPValidateKeyValue aKeyValue)
Adds a key value pair to the list of key value pairs.
|
void |
addPostalInfo(EPPValidatePostalDefinition aPostalInfo)
Adds a postal definition to the postal information for the contact.
|
java.lang.Object |
clone()
Clone
EPPValidateContact. |
void |
decode(org.w3c.dom.Element aElement)
Decode the
EPPValidateContact 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
EPPValidateContact instance. |
boolean |
equals(java.lang.Object aObject)
Compare an instance of
EPPValidateContact with this instance. |
EPPValidateAuthInfo |
getAuthInfo()
Gets the authorization info value.
|
java.lang.String |
getContactType()
Gets the contact type.
|
java.lang.String |
getEmail()
Gets the contact email value.
|
java.lang.String |
getFax()
Gets the contact fax value.
|
java.lang.String |
getFaxExt()
Gets the contact fax extension value.
|
java.lang.String |
getId()
Gets the contact identifier.
|
java.util.List<EPPValidateKeyValue> |
getKeyValues()
Gets the full list of key value pairs.
|
java.lang.String |
getNamespace()
Gets the EPP command namespace associated with
EPPValidateContact. |
java.util.List<EPPValidatePostalDefinition> |
getPostalInfo()
Gets the postal information for the contact.
|
java.lang.String |
getTld()
Gets the TLD.
|
java.lang.String |
getType()
Gets the EPP response type associated with
EPPValidateContact. |
java.lang.String |
getVoice()
Gets the contact voice value.
|
java.lang.String |
getVoiceExt()
Gets the contact voice extension value.
|
boolean |
hasAuthInfo()
Is the authorization info defined?
|
boolean |
hasEmail()
Is the email defined?
|
boolean |
hasFax()
Is the contact fax value been defined?
|
boolean |
hasFaxExt()
Is the contact fax extension value defined?
|
boolean |
hasPostalInfo()
Is there any postal information set?
|
boolean |
hasVoice()
Is the contact voice value been defined?
|
boolean |
hasVoiceExt()
Is the contact voice extension value defined?
|
void |
setAuthInfo(EPPValidateAuthInfo aAuthInfo)
Sets the authorization info value.
|
void |
setContactType(java.lang.String aContactType)
Sets the contact type.
|
void |
setEmail(java.lang.String aEmail)
Sets the contact email value.
|
void |
setFax(java.lang.String aFax)
Sets the contact fax value.
|
void |
setFaxExt(java.lang.String aFaxExt)
Sets the contact fax extension value.
|
void |
setId(java.lang.String aId)
Sets the contact identifier.
|
void |
setKeyValues(java.util.List<EPPValidateKeyValue> aKeyValues)
Sets the full list of key value pairs.
|
void |
setPostalInfo(java.util.List<EPPValidatePostalDefinition> aPostalInfo)
Sets the postal information for the contact.
|
void |
setTld(java.lang.String aTld)
Sets the TLD.
|
void |
setVoice(java.lang.String aVoice)
Sets the contact voice value.
|
void |
setVoiceExt(java.lang.String aVoiceExt)
Sets the contact voice extension value.
|
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 ELM_LOCALNAME
EPPValidateContact.public static final java.lang.String ELM_NAME
EPPValidateContact.public EPPValidateContact()
EPPValidateContact default constructor.public EPPValidateContact(java.lang.String aId,
java.lang.String aContactType,
java.lang.String aTld)
EPPValidateContact default constructor that takes the required
attributes.aId - Contact identifieraContactType - Contact typeaTld - TLDpublic java.lang.String getId()
null otherwise.public void setId(java.lang.String aId)
aId - The contact identifierpublic java.lang.String getContactType()
null otherwise.public void setContactType(java.lang.String aContactType)
aType - The contact typepublic java.lang.String getTld()
null otherwise.public void setTld(java.lang.String aTld)
aTld - The TLDpublic boolean hasPostalInfo()
true if there is at least one
EPPValidatePostalDefinition set in the postal information;
false otherwise.public void addPostalInfo(EPPValidatePostalDefinition aPostalInfo)
aPostalInfo - Postal definition to add to the postal information.public java.util.List<EPPValidatePostalDefinition> getPostalInfo()
EPPValidatePostalDefinition objects in the postal information
list.public void setPostalInfo(java.util.List<EPPValidatePostalDefinition> aPostalInfo)
EPPValidatePostalDefinition objects in the postal information
list.aPostalInfo - Postal information for the contact.public boolean hasVoice()
true if the contact voice value is defined;
false otherwise.public java.lang.String getVoice()
null otherwise.public void setVoice(java.lang.String aVoice)
aVoice - the contact voice value.public boolean hasVoiceExt()
true if the contact voice extension value is defined;
false otherwise.public java.lang.String getVoiceExt()
null
otherwise.public void setVoiceExt(java.lang.String aVoiceExt)
aVoiceExt - the contact voice extension valuepublic boolean hasFax()
true if the contact fax value is defined;
false otherwise.public java.lang.String getFax()
null otherwise.public void setFax(java.lang.String aFax)
aFax - the contact fax value.public boolean hasFaxExt()
true if the contact fax extension value is defined;
false otherwise.public java.lang.String getFaxExt()
null
otherwise.public void setFaxExt(java.lang.String aFaxExt)
aFaxExt - the contact fax extension valuepublic boolean hasEmail()
true if the email is defined; false
otherwise.public java.lang.String getEmail()
null otherwise.public void setEmail(java.lang.String aEmail)
aEmail - the email to setpublic boolean hasAuthInfo()
true if the authorization info is defined;
false otherwise.public EPPValidateAuthInfo getAuthInfo()
null otherwise.public void setAuthInfo(EPPValidateAuthInfo aAuthInfo)
aAuthInfo - The authorization info valuepublic void addKeyValue(EPPValidateKeyValue aKeyValue)
contactType attribute.aKeyValue - Key value pair to add to the listpublic void setKeyValues(java.util.List<EPPValidateKeyValue> aKeyValues)
aKeyValues - List of EPPValidateKeyValue instances.public java.util.List<EPPValidateKeyValue> getKeyValues()
EPPValidateKeyValue instances.public org.w3c.dom.Element encode(org.w3c.dom.Document aDocument)
throws EPPEncodeException
EPPValidateContact instance.encode in interface EPPCodecComponentaDocument - DOM Document that is being built. Used as an Element factory.EPPValidateCheckResult instance.EPPEncodeException - Unable to encode EPPValidateCheckResult instance.public void decode(org.w3c.dom.Element aElement)
throws EPPDecodeException
EPPValidateContact attributes from the aElement DOM
Element tree.decode in interface EPPCodecComponentaElement - Root DOM Element to decode EPPValidateCheckResult from.EPPDecodeException - Unable to decode aElement.public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
EPPValidateContact.clone in interface EPPCodecComponentclone in class java.lang.ObjectEPPValidateContactjava.lang.CloneNotSupportedException - standard Object.clone exceptionpublic java.lang.String getType()
EPPValidateContact.EPPValidateContact.ELM_NAMEpublic java.lang.String getNamespace()
EPPValidateContact.getNamespace in interface EPPCodecComponentEPPValidateMapFactory.NSpublic boolean equals(java.lang.Object aObject)
EPPValidateContact with this instance.equals in class java.lang.ObjectaObject - Object to compare with.true if this object is the same as the aObject argument;
false otherwisepublic 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.Copyright © VeriSign Inc. All Rights Reserved.