Package com.verisign.epp.codec.contact
Class EPPContactCheckResult
java.lang.Object
com.verisign.epp.codec.contact.EPPContactCheckResult
- All Implemented Interfaces:
EPPCodecComponent,Serializable,Cloneable
EPPContactCheckResult represents the result of an individual
contact id check. The attributes of EPPContactCheckResult
include the contact id and a boolean value indicating if the contact id
is available by the server. contact reason must be set before
invoking encode if the available flag is set to
false. - See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor forEPPContactCheckResult.EPPContactCheckResult(String aId, boolean aIsAvailable) Constructor forEPPContactCheckResultthat includes the contact id and the is available flag. -
Method Summary
Modifier and TypeMethodDescriptionclone()CloneEPPContactCheckResult.voidDecode theEPPContactCheckResultattributes from the aElement DOM Element tree.Encode a DOM Element tree from the attributes of theEPPContactCheckResultinstance.booleanCompare an instance ofEPPContactCheckResultwith this instance.Gets domain reason to check.getId()Gets the contact id associated with the result.Sets contact reason to check.Returns the XML namespace associated with theEPPCodecComponent.booleanGets if the contact associated withEPPContactCheckResultis available.voidsetContactReason(String aReason) Sets domain reason.voidSets the contact id associated with the result.voidsetIsAvailable(boolean aIsAvailable) Sets if the contact associated withEPPContactCheckResultis available.voidsetLanguage(String aLang) Sets language attribute.toString()Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.
-
Constructor Details
-
EPPContactCheckResult
public EPPContactCheckResult()Default constructor forEPPContactCheckResult. the defaults include the following:
-
id is set to
null -
available is set to
true
The id must be set before invokingencode. -
id is set to
-
EPPContactCheckResult
Constructor forEPPContactCheckResultthat includes the contact id and the is available flag.- Parameters:
aId- Contact id associated with resultaIsAvailable- Is the contact id available?
-
-
Method Details
-
getId
Gets the contact id associated with the result.- Returns:
- Contact id associated with the result if defined;
nullotherwise.
-
setId
Sets the contact id associated with the result.- Parameters:
aId- Contact Id associated with the result.
-
isAvailable
public boolean isAvailable()Gets if the contact associated withEPPContactCheckResultis available.- Returns:
- Is the contact available?
-
setIsAvailable
public void setIsAvailable(boolean aIsAvailable) Sets if the contact associated withEPPContactCheckResultis available.- Parameters:
aIsAvailable- Is the contact available?
-
setLanguage
Sets language attribute.- Parameters:
aLang- Sets contact reason language attribute.
-
getLanguage
Sets contact reason to check.- Returns:
- String of domain reason language.
-
setContactReason
Sets domain reason.- Parameters:
aReason- Contact Reason to check.
-
getContactReason
Gets domain reason to check.- Returns:
- String of contact reason
String's.
-
encode
Encode a DOM Element tree from the attributes of theEPPContactCheckResultinstance.- Specified by:
encodein interfaceEPPCodecComponent- Parameters:
aDocument- DOM Document that is being built. Used as an Element factory.- Returns:
- Element Root DOM Element representing the
EPPContactCheckResultinstance. - Throws:
EPPEncodeException- Unable to encodeEPPContactCheckResultinstance.
-
decode
Decode theEPPContactCheckResultattributes from the aElement DOM Element tree.- Specified by:
decodein interfaceEPPCodecComponent- Parameters:
aElement- Root DOM Element to decodeEPPContactPingResultfrom.- Throws:
EPPDecodeException- Unable to decode aElement.
-
equals
Compare an instance ofEPPContactCheckResultwith this instance. -
clone
CloneEPPContactCheckResult.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classObject- Returns:
- clone of
EPPContactCheckResult - 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.
-