Class EPPRegistryCheckResult
- java.lang.Object
-
- com.verisign.epp.codec.registry.v02.EPPRegistryCheckResult
-
- All Implemented Interfaces:
EPPCodecComponent,java.io.Serializable,java.lang.Cloneable
public class EPPRegistryCheckResult extends java.lang.Object implements EPPCodecComponent
EPPRegistryCheckResultprovides the result of checking the availability of an individual zone.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringELM_LOCALNAMEXML local name forEPPRegistryInfoResp.static java.lang.StringELM_NAMEXML root tag forEPPRegistryCheckResult.
-
Constructor Summary
Constructors Constructor Description EPPRegistryCheckResult()Creates a newEPPRegistryCheckResultobject with an empty zone name and availability set totrue.EPPRegistryCheckResult(EPPRegistryZoneName aName, java.lang.Boolean aAvailable)Creates a newEPPRegistryCheckResultobject with a defined zone name and available value.EPPRegistryCheckResult(EPPRegistryZoneName aName, java.lang.Boolean aAvailable, java.lang.String aReason)Creates a newEPPRegistryCheckResultobject with a defined zone name, available value, and reason.EPPRegistryCheckResult(java.lang.String aName, java.lang.Boolean aAvailable)Creates a newEPPRegistryCheckResultobject with a defined aLabel zone name and available value.EPPRegistryCheckResult(java.lang.String aName, java.lang.Boolean aAvailable, java.lang.String aReason)Creates a newEPPRegistryCheckResultobject with a defined aLabel zone name, available value, and reason.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Objectclone()CloneEPPRegistryCheckResult.voiddecode(org.w3c.dom.Element aElement)Decode theEPPRegistryCheckResultattributes from the aElement DOM Element tree.org.w3c.dom.Elementencode(org.w3c.dom.Document aDocument)Encode a DOM Element tree from the attributes of theEPPRegistryCheckResultinstance.booleanequals(java.lang.Object aObject)Compare an instance ofEPPRegistryCheckResultwith this instance.java.lang.StringgetLanguage()Gets the unavailable reason language with the default value ofVALUE_LANG.EPPRegistryZoneNamegetName()Gets the zone name.java.lang.StringgetNamespace()Returns the XML namespace associated with theEPPCodecComponent.java.lang.StringgetReason()Gets the unavailable reason.java.lang.BooleanisAvailable()Gets the zone available.voidsetAvailable(java.lang.Boolean aAvailable)Sets the zone available.voidsetLanguage(java.lang.String aLanguage)Sets the unavailable reason language with the default value ofVALUE_LANG.voidsetName(EPPRegistryZoneName aName)Sets the zone namevoidsetName(java.lang.String aName)Sets the aLabel zone namevoidsetReason(java.lang.String aReason)Sets the unavailable reason.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 forEPPRegistryInfoResp.- See Also:
- Constant Field Values
-
ELM_NAME
public static final java.lang.String ELM_NAME
XML root tag forEPPRegistryCheckResult.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
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
public EPPRegistryCheckResult(java.lang.String aName, java.lang.Boolean aAvailable)Creates a newEPPRegistryCheckResultobject with a defined aLabel zone name and available value.- Parameters:
aName- aLabel zone nameaAvailable-trueif available;falseotherwise.
-
EPPRegistryCheckResult
public EPPRegistryCheckResult(EPPRegistryZoneName aName, java.lang.Boolean aAvailable)
Creates a newEPPRegistryCheckResultobject with a defined zone name and available value.- Parameters:
aName- Zone nameaAvailable-trueif available;falseotherwise.
-
EPPRegistryCheckResult
public EPPRegistryCheckResult(java.lang.String aName, java.lang.Boolean aAvailable, java.lang.String aReason)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
public EPPRegistryCheckResult(EPPRegistryZoneName aName, java.lang.Boolean aAvailable, java.lang.String aReason)
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 Detail
-
encode
public org.w3c.dom.Element encode(org.w3c.dom.Document aDocument) throws EPPEncodeExceptionEncode 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
public void decode(org.w3c.dom.Element aElement) throws EPPDecodeExceptionDecode 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
public java.lang.Object clone() throws java.lang.CloneNotSupportedExceptionCloneEPPRegistryCheckResult.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classjava.lang.Object- Returns:
- clone of
EPPRegistryCheckResult - Throws:
java.lang.CloneNotSupportedException- standard Object.clone exception
-
equals
public boolean equals(java.lang.Object aObject)
Compare an instance ofEPPRegistryCheckResultwith 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.
-
getLanguage
public java.lang.String getLanguage()
Gets the unavailable reason language with the default value ofVALUE_LANG.- Returns:
- Unavailable reason langauge with the default value of
VALUE_LANG.
-
setLanguage
public void setLanguage(java.lang.String aLanguage)
Sets the unavailable reason language with the default value ofVALUE_LANG.- Parameters:
aLanguage- Language of the unavailable reason set withsetReason(String).
-
getName
public EPPRegistryZoneName getName()
Gets the zone name.- Returns:
- Zone name if set;
nullotherwise.
-
setName
public void setName(EPPRegistryZoneName aName)
Sets the zone name- Parameters:
aName- Zone name
-
setName
public void setName(java.lang.String aName)
Sets the aLabel zone name- Parameters:
aName- aLabel zone name
-
isAvailable
public java.lang.Boolean isAvailable()
Gets the zone available.- Returns:
trueif available;falseotherwise.
-
setAvailable
public void setAvailable(java.lang.Boolean aAvailable)
Sets the zone available.- Parameters:
aAvailable-trueif available;falseotherwise.
-
getReason
public java.lang.String getReason()
- Returns:
- The unavailable reason if set;
nullotherwise.
-
setReason
public void setReason(java.lang.String aReason)
- Parameters:
aReason- Unavailable reason. Set tonullif zone is available.
-
getNamespace
public java.lang.String getNamespace()
Returns the XML namespace associated with theEPPCodecComponent.- Specified by:
getNamespacein interfaceEPPCodecComponent- Returns:
- XML namespace for the
EPPCodecComponent.
-
-