Class EPPRegistryCheckResult
java.lang.Object
com.verisign.epp.codec.registry.v02.EPPRegistryCheckResult
- All Implemented Interfaces:
EPPCodecComponent,Serializable,Cloneable
EPPRegistryCheckResult provides the result of checking the
availability of an individual zone.- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCreates a newEPPRegistryCheckResultobject with an empty zone name and availability set totrue.EPPRegistryCheckResult(EPPRegistryZoneName aName, Boolean aAvailable) Creates a newEPPRegistryCheckResultobject with a defined zone name and available value.EPPRegistryCheckResult(EPPRegistryZoneName aName, Boolean aAvailable, String aReason) Creates a newEPPRegistryCheckResultobject with a defined zone name, available value, and reason.EPPRegistryCheckResult(String aName, Boolean aAvailable) Creates a newEPPRegistryCheckResultobject with a defined aLabel zone name and available value.EPPRegistryCheckResult(String aName, Boolean aAvailable, String aReason) Creates a newEPPRegistryCheckResultobject with a defined aLabel zone name, available value, and reason. -
Method Summary
Modifier and TypeMethodDescriptionclone()CloneEPPRegistryCheckResult.voidDecode theEPPRegistryCheckResultattributes from the aElement DOM Element tree.Encode a DOM Element tree from the attributes of theEPPRegistryCheckResultinstance.booleanCompare an instance ofEPPRegistryCheckResultwith this instance.Gets the unavailable reason language with the default value ofVALUE_LANG.getName()Gets the zone name.Returns the XML namespace associated with theEPPCodecComponent.Gets the unavailable reason.Gets the zone available.voidsetAvailable(Boolean aAvailable) Sets the zone available.voidsetLanguage(String aLanguage) Sets the unavailable reason language with the default value ofVALUE_LANG.voidsetName(EPPRegistryZoneName aName) Sets the zone namevoidSets the aLabel zone namevoidSets the unavailable reason.toString()Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.
-
Field Details
-
ELM_LOCALNAME
XML local name forEPPRegistryInfoResp.- See Also:
-
ELM_NAME
XML root tag forEPPRegistryCheckResult.- See Also:
-
-
Constructor Details
-
EPPRegistryCheckResult
public EPPRegistryCheckResult()Creates a newEPPRegistryCheckResultobject with an empty zone name and availability set totrue. The Zone name must be set viasetName(String)prior to callingencode(Document). -
EPPRegistryCheckResult
Creates a newEPPRegistryCheckResultobject with a defined aLabel zone name and available value.- Parameters:
aName- aLabel zone nameaAvailable-trueif available;falseotherwise.
-
EPPRegistryCheckResult
Creates a newEPPRegistryCheckResultobject with a defined zone name and available value.- Parameters:
aName- Zone nameaAvailable-trueif available;falseotherwise.
-
EPPRegistryCheckResult
Creates a newEPPRegistryCheckResultobject with a defined aLabel zone name, available value, and reason.- Parameters:
aName- aLabel zone nameaAvailable- Should be set tofalsefor this constructor.aReason- Reason Unavailable reason using the default language ofVALUE_LANG.
-
EPPRegistryCheckResult
Creates a newEPPRegistryCheckResultobject with a defined zone name, available value, and reason.- Parameters:
aName- Zone nameaAvailable- Should be set tofalsefor this constructor.aReason- Reason Unavailable reason using the default language ofVALUE_LANG.
-
-
Method Details
-
encode
Encode a DOM Element tree from the attributes of theEPPRegistryCheckResultinstance.- Specified by:
encodein interfaceEPPCodecComponent- Parameters:
aDocument- DOM Document that is being built. Used as an Element factory.- Returns:
- Element Root DOM Element representing the
EPPRegistryCheckResultinstance. - Throws:
EPPEncodeException- Unable to encodeEPPRegistryCheckResultinstance.
-
decode
Decode theEPPRegistryCheckResultattributes from the aElement DOM Element tree.- Specified by:
decodein interfaceEPPCodecComponent- Parameters:
aElement- Root DOM Element to decodeEPPRegistryCheckResultfrom.- Throws:
EPPDecodeException- Unable to decode aElement
-
clone
CloneEPPRegistryCheckResult.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classObject- Returns:
- clone of
EPPRegistryCheckResult - Throws:
CloneNotSupportedException- standard Object.clone exception
-
equals
Compare an instance ofEPPRegistryCheckResultwith this instance. -
toString
Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent. -
getLanguage
Gets the unavailable reason language with the default value ofVALUE_LANG.- Returns:
- Unavailable reason langauge with the default value of
VALUE_LANG.
-
setLanguage
Sets the unavailable reason language with the default value ofVALUE_LANG.- Parameters:
aLanguage- Language of the unavailable reason set withsetReason(String).
-
getName
Gets the zone name.- Returns:
- Zone name if set;
nullotherwise.
-
setName
Sets the zone name- Parameters:
aName- Zone name
-
setName
Sets the aLabel zone name- Parameters:
aName- aLabel zone name
-
isAvailable
Gets the zone available.- Returns:
trueif available;falseotherwise.
-
setAvailable
Sets the zone available.- Parameters:
aAvailable-trueif available;falseotherwise.
-
getReason
- Returns:
- The unavailable reason if set;
nullotherwise.
-
setReason
- Parameters:
aReason- Unavailable reason. Set tonullif zone is available.
-
getNamespace
Returns the XML namespace associated with theEPPCodecComponent.- Specified by:
getNamespacein interfaceEPPCodecComponent- Returns:
- XML namespace for the
EPPCodecComponent.
-