Class EPPValidateContact
- java.lang.Object
-
- com.verisign.epp.codec.validate.v02.EPPValidateContact
-
- All Implemented Interfaces:
EPPCodecComponent,java.io.Serializable,java.lang.Cloneable
public class EPPValidateContact extends java.lang.Object implements EPPCodecComponent
Represents a <validate:contact> element in the Validate Check Command.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringELM_LOCALNAMEXML local name forEPPValidateContact.static java.lang.StringELM_NAMEXML root tag forEPPValidateContact.
-
Constructor Summary
Constructors Constructor Description EPPValidateContact()EPPValidateContactdefault constructor.EPPValidateContact(java.lang.String aId, java.lang.String aContactType, java.lang.String aTld)EPPValidateContactdefault constructor that takes the required attributes.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddKeyValue(EPPValidateKeyValue aKeyValue)Adds a key value pair to the list of key value pairs.voidaddPostalInfo(EPPValidatePostalDefinition aPostalInfo)Adds a postal definition to the postal information for the contact.java.lang.Objectclone()CloneEPPValidateContact.voiddecode(org.w3c.dom.Element aElement)Decode theEPPValidateContactattributes from the aElement DOM Element tree.org.w3c.dom.Elementencode(org.w3c.dom.Document aDocument)Encode a DOM Element tree from the attributes of theEPPValidateContactinstance.booleanequals(java.lang.Object aObject)Compare an instance ofEPPValidateContactwith this instance.EPPValidateAuthInfogetAuthInfo()Gets the authorization info value.java.lang.StringgetContactType()Gets the contact type.java.lang.StringgetEmail()Gets the contact email value.java.lang.StringgetFax()Gets the contact fax value.java.lang.StringgetFaxExt()Gets the contact fax extension value.java.lang.StringgetId()Gets the contact identifier.java.util.List<EPPValidateKeyValue>getKeyValues()Gets the full list of key value pairs.java.lang.StringgetNamespace()Gets the EPP command namespace associated withEPPValidateContact.java.util.List<EPPValidatePostalDefinition>getPostalInfo()Gets the postal information for the contact.java.lang.StringgetTld()Gets the TLD.java.lang.StringgetType()Gets the EPP response type associated withEPPValidateContact.java.lang.StringgetVoice()Gets the contact voice value.java.lang.StringgetVoiceExt()Gets the contact voice extension value.booleanhasAuthInfo()Is the authorization info defined?booleanhasEmail()Is the email defined?booleanhasFax()Is the contact fax value been defined?booleanhasFaxExt()Is the contact fax extension value defined?booleanhasPostalInfo()Is there any postal information set?booleanhasVoice()Is the contact voice value been defined?booleanhasVoiceExt()Is the contact voice extension value defined?voidsetAuthInfo(EPPValidateAuthInfo aAuthInfo)Sets the authorization info value.voidsetContactType(java.lang.String aType)Sets the contact type.voidsetEmail(java.lang.String aEmail)Sets the contact email value.voidsetFax(java.lang.String aFax)Sets the contact fax value.voidsetFaxExt(java.lang.String aFaxExt)Sets the contact fax extension value.voidsetId(java.lang.String aId)Sets the contact identifier.voidsetKeyValues(java.util.List<EPPValidateKeyValue> aKeyValues)Sets the full list of key value pairs.voidsetPostalInfo(java.util.List<EPPValidatePostalDefinition> aPostalInfo)Sets the postal information for the contact.voidsetTld(java.lang.String aTld)Sets the TLD.voidsetVoice(java.lang.String aVoice)Sets the contact voice value.voidsetVoiceExt(java.lang.String aVoiceExt)Sets the contact voice extension value.java.lang.StringtoString()Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.
-
-
-
Field Detail
-
ELM_LOCALNAME
public static final java.lang.String ELM_LOCALNAME
XML local name forEPPValidateContact.- See Also:
- Constant Field Values
-
ELM_NAME
public static final java.lang.String ELM_NAME
XML root tag forEPPValidateContact.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
EPPValidateContact
public EPPValidateContact()
EPPValidateContactdefault constructor.
-
EPPValidateContact
public EPPValidateContact(java.lang.String aId, java.lang.String aContactType, java.lang.String aTld)EPPValidateContactdefault constructor that takes the required attributes.- Parameters:
aId- Contact identifieraContactType- Contact typeaTld- TLD
-
-
Method Detail
-
getId
public java.lang.String getId()
Gets the contact identifier.- Returns:
- The contact identifier if defined;
nullotherwise.
-
setId
public void setId(java.lang.String aId)
Sets the contact identifier.- Parameters:
aId- The contact identifier
-
getContactType
public java.lang.String getContactType()
Gets the contact type.- Returns:
- The contact type if defined;
nullotherwise.
-
setContactType
public void setContactType(java.lang.String aType)
Sets the contact type.- Parameters:
aType- The contact type
-
getTld
public java.lang.String getTld()
Gets the TLD.- Returns:
- The TLD if defined;
nullotherwise.
-
setTld
public void setTld(java.lang.String aTld)
Sets the TLD.- Parameters:
aTld- The TLD
-
hasPostalInfo
public boolean hasPostalInfo()
Is there any postal information set?- Returns:
trueif there is at least oneEPPValidatePostalDefinitionset in the postal information;falseotherwise.
-
addPostalInfo
public void addPostalInfo(EPPValidatePostalDefinition aPostalInfo)
Adds a postal definition to the postal information for the contact.- Parameters:
aPostalInfo- Postal definition to add to the postal information.
-
getPostalInfo
public java.util.List<EPPValidatePostalDefinition> getPostalInfo()
Gets the postal information for the contact. There can be one or twoEPPValidatePostalDefinitionobjects in the postal information list.- Returns:
- Postal information for the contact
-
setPostalInfo
public void setPostalInfo(java.util.List<EPPValidatePostalDefinition> aPostalInfo)
Sets the postal information for the contact. There can be one or twoEPPValidatePostalDefinitionobjects in the postal information list.- Parameters:
aPostalInfo- Postal information for the contact.
-
hasVoice
public boolean hasVoice()
Is the contact voice value been defined?- Returns:
trueif the contact voice value is defined;falseotherwise.
-
getVoice
public java.lang.String getVoice()
Gets the contact voice value.- Returns:
- the contact voice value if defined;
nullotherwise.
-
setVoice
public void setVoice(java.lang.String aVoice)
Sets the contact voice value.- Parameters:
aVoice- the contact voice value.
-
hasVoiceExt
public boolean hasVoiceExt()
Is the contact voice extension value defined?- Returns:
trueif the contact voice extension value is defined;falseotherwise.
-
getVoiceExt
public java.lang.String getVoiceExt()
Gets the contact voice extension value.- Returns:
- the contact voice extension value if defined;
nullotherwise.
-
setVoiceExt
public void setVoiceExt(java.lang.String aVoiceExt)
Sets the contact voice extension value.- Parameters:
aVoiceExt- the contact voice extension value
-
hasFax
public boolean hasFax()
Is the contact fax value been defined?- Returns:
trueif the contact fax value is defined;falseotherwise.
-
getFax
public java.lang.String getFax()
Gets the contact fax value.- Returns:
- the contact fax value if defined;
nullotherwise.
-
setFax
public void setFax(java.lang.String aFax)
Sets the contact fax value.- Parameters:
aFax- the contact fax value.
-
hasFaxExt
public boolean hasFaxExt()
Is the contact fax extension value defined?- Returns:
trueif the contact fax extension value is defined;falseotherwise.
-
getFaxExt
public java.lang.String getFaxExt()
Gets the contact fax extension value.- Returns:
- the contact fax extension value if defined;
nullotherwise.
-
setFaxExt
public void setFaxExt(java.lang.String aFaxExt)
Sets the contact fax extension value.- Parameters:
aFaxExt- the contact fax extension value
-
hasEmail
public boolean hasEmail()
Is the email defined?- Returns:
trueif the email is defined;falseotherwise.
-
getEmail
public java.lang.String getEmail()
Gets the contact email value.- Returns:
- the email if defined;
nullotherwise.
-
setEmail
public void setEmail(java.lang.String aEmail)
Sets the contact email value.- Parameters:
aEmail- the email to set
-
hasAuthInfo
public boolean hasAuthInfo()
Is the authorization info defined?- Returns:
trueif the authorization info is defined;falseotherwise.
-
getAuthInfo
public EPPValidateAuthInfo getAuthInfo()
Gets the authorization info value.- Returns:
- the authorization info value if defined;
nullotherwise.
-
setAuthInfo
public void setAuthInfo(EPPValidateAuthInfo aAuthInfo)
Sets the authorization info value.- Parameters:
aAuthInfo- The authorization info value
-
addKeyValue
public void addKeyValue(EPPValidateKeyValue aKeyValue)
Adds a key value pair to the list of key value pairs. The key value pair is used to defined additional contact attributes. The key value pair should not include thecontactTypeattribute.- Parameters:
aKeyValue- Key value pair to add to the list
-
setKeyValues
public void setKeyValues(java.util.List<EPPValidateKeyValue> aKeyValues)
Sets the full list of key value pairs. A key value pair is used to define additional contact attributes.- Parameters:
aKeyValues- List ofEPPValidateKeyValueinstances.
-
getKeyValues
public java.util.List<EPPValidateKeyValue> getKeyValues()
Gets the full list of key value pairs. A key value pair is used to define additional contact attributes.- Returns:
- List of
EPPValidateKeyValueinstances.
-
encode
public org.w3c.dom.Element encode(org.w3c.dom.Document aDocument) throws EPPEncodeExceptionEncode a DOM Element tree from the attributes of theEPPValidateContactinstance.- Specified by:
encodein interfaceEPPCodecComponent- Parameters:
aDocument- DOM Document that is being built. Used as an Element factory.- Returns:
- Element Root DOM Element representing the
EPPValidateCheckResultinstance. - Throws:
EPPEncodeException- Unable to encodeEPPValidateCheckResultinstance.
-
decode
public void decode(org.w3c.dom.Element aElement) throws EPPDecodeExceptionDecode theEPPValidateContactattributes from the aElement DOM Element tree.- Specified by:
decodein interfaceEPPCodecComponent- Parameters:
aElement- Root DOM Element to decodeEPPValidateCheckResultfrom.- Throws:
EPPDecodeException- Unable to decode aElement.
-
clone
public java.lang.Object clone() throws java.lang.CloneNotSupportedExceptionCloneEPPValidateContact.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classjava.lang.Object- Returns:
- clone of
EPPValidateContact - Throws:
java.lang.CloneNotSupportedException- standard Object.clone exception
-
getType
public java.lang.String getType()
Gets the EPP response type associated withEPPValidateContact.- Returns:
EPPValidateContact.ELM_NAME
-
getNamespace
public java.lang.String getNamespace()
Gets the EPP command namespace associated withEPPValidateContact.- Specified by:
getNamespacein interfaceEPPCodecComponent- Returns:
EPPValidateMapFactory.NS
-
equals
public boolean equals(java.lang.Object aObject)
Compare an instance ofEPPValidateContactwith this instance.- Overrides:
equalsin classjava.lang.Object- Parameters:
aObject- Object to compare with.- Returns:
trueif this object is the same as the aObject argument;falseotherwise
-
toString
public java.lang.String toString()
Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.- Overrides:
toStringin classjava.lang.Object- Returns:
- Indented XML
Stringif successful;ERRORotherwise.
-
-