Class EPPValidateContact
java.lang.Object
com.verisign.epp.codec.validate.v02.EPPValidateContact
- All Implemented Interfaces:
EPPCodecComponent,Serializable,Cloneable
Represents a <validate:contact> element in the Validate Check Command.
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionEPPValidateContactdefault constructor.EPPValidateContact(String aId, String aContactType, String aTld) EPPValidateContactdefault constructor that takes the required attributes. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddKeyValue(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.clone()CloneEPPValidateContact.voidDecode theEPPValidateContactattributes from the aElement DOM Element tree.Encode a DOM Element tree from the attributes of theEPPValidateContactinstance.booleanCompare an instance ofEPPValidateContactwith this instance.Gets the authorization info value.Gets the contact type.getEmail()Gets the contact email value.getFax()Gets the contact fax value.Gets the contact fax extension value.getId()Gets the contact identifier.Gets the full list of key value pairs.Gets the EPP command namespace associated withEPPValidateContact.Gets the postal information for the contact.getTld()Gets the TLD.getType()Gets the EPP response type associated withEPPValidateContact.getVoice()Gets the contact voice value.Gets the contact voice extension value.booleanIs the authorization info defined?booleanhasEmail()Is the email defined?booleanhasFax()Is the contact fax value been defined?booleanIs the contact fax extension value defined?booleanIs there any postal information set?booleanhasVoice()Is the contact voice value been defined?booleanIs the contact voice extension value defined?voidsetAuthInfo(EPPValidateAuthInfo aAuthInfo) Sets the authorization info value.voidsetContactType(String aType) Sets the contact type.voidSets the contact email value.voidSets the contact fax value.voidSets the contact fax extension value.voidSets the contact identifier.voidsetKeyValues(List<EPPValidateKeyValue> aKeyValues) Sets the full list of key value pairs.voidsetPostalInfo(List<EPPValidatePostalDefinition> aPostalInfo) Sets the postal information for the contact.voidSets the TLD.voidSets the contact voice value.voidsetVoiceExt(String aVoiceExt) Sets the contact voice extension value.toString()Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.
-
Field Details
-
ELM_LOCALNAME
XML local name forEPPValidateContact.- See Also:
-
ELM_NAME
XML root tag forEPPValidateContact.- See Also:
-
-
Constructor Details
-
EPPValidateContact
public EPPValidateContact()EPPValidateContactdefault constructor. -
EPPValidateContact
EPPValidateContactdefault constructor that takes the required attributes.- Parameters:
aId- Contact identifieraContactType- Contact typeaTld- TLD
-
-
Method Details
-
getId
Gets the contact identifier.- Returns:
- The contact identifier if defined;
nullotherwise.
-
setId
Sets the contact identifier.- Parameters:
aId- The contact identifier
-
getContactType
Gets the contact type.- Returns:
- The contact type if defined;
nullotherwise.
-
setContactType
Sets the contact type.- Parameters:
aType- The contact type
-
getTld
Gets the TLD.- Returns:
- The TLD if defined;
nullotherwise.
-
setTld
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
Adds a postal definition to the postal information for the contact.- Parameters:
aPostalInfo- Postal definition to add to the postal information.
-
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
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
Gets the contact voice value.- Returns:
- the contact voice value if defined;
nullotherwise.
-
setVoice
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
Gets the contact voice extension value.- Returns:
- the contact voice extension value if defined;
nullotherwise.
-
setVoiceExt
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
Gets the contact fax value.- Returns:
- the contact fax value if defined;
nullotherwise.
-
setFax
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
Gets the contact fax extension value.- Returns:
- the contact fax extension value if defined;
nullotherwise.
-
setFaxExt
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
Gets the contact email value.- Returns:
- the email if defined;
nullotherwise.
-
setEmail
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
Gets the authorization info value.- Returns:
- the authorization info value if defined;
nullotherwise.
-
setAuthInfo
Sets the authorization info value.- Parameters:
aAuthInfo- The authorization info value
-
addKeyValue
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
Sets the full list of key value pairs. A key value pair is used to define additional contact attributes.- Parameters:
aKeyValues- List ofEPPValidateKeyValueinstances.
-
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
Encode 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
Decode 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
CloneEPPValidateContact.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classObject- Returns:
- clone of
EPPValidateContact - Throws:
CloneNotSupportedException- standard Object.clone exception
-
getType
Gets the EPP response type associated withEPPValidateContact.- Returns:
EPPValidateContact.ELM_NAME
-
getNamespace
Gets the EPP command namespace associated withEPPValidateContact.- Specified by:
getNamespacein interfaceEPPCodecComponent- Returns:
EPPValidateMapFactory.NS
-
equals
Compare an instance ofEPPValidateContactwith this instance. -
toString
Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.
-