Package com.verisign.epp.codec.defReg
Class EPPDefRegCheckResult
java.lang.Object
com.verisign.epp.codec.defReg.EPPDefRegCheckResult
- All Implemented Interfaces:
EPPCodecComponent,Serializable,Cloneable
EPPDomainCheckResult represents the result of an individual
defReg name ping. The attributes of EPPDomainCheckResult include
the defReg name and attributes namely level which is either "premium" or
"standard" and boolean value indicating if the defReg name is already
available. defReg reason must be set before invoking
encode if the available flag is set to false.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor forEPPDefRegCheckResult.EPPDefRegCheckResult(String aName, String aLevel, boolean aIsAvailable) Constructor forEPPDefRegCheckResultthat includes the defReg name and the is available flag. -
Method Summary
Modifier and TypeMethodDescriptionclone()CloneEPPDefRegCheckResult.voidDecode theEPPDefRegCheckResultattributes from the aElement DOM Element tree.Encode a DOM Element tree from the attributes of theEPPDefRegCheckResultinstance.booleanCompare an instance ofEPPDefRegPingRespwith this instance.Gets defReg reason.Sets defReg reason to check.getLevel()Gets the defReg level associated with the result.getName()Gets the defReg name associated with the result.Returns the XML namespace associated with theEPPCodecComponent.booleanGets if the defReg associated withEPPDomainCheckResultis available.voidsetDefRegReason(String aReason) Sets defReg reason.voidsetIsAvailable(boolean aIsAvailable) Sets if the defReg associated withEPPDefRegCheckResultis available.voidsetLanguage(String aLang) Sets language attribute.voidSets the defReg level associated with the result.voidSets the defReg name associated with the result.toString()Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.voidvalidate()Validate the state of theEPPDefRegCreateCmdinstance.
-
Constructor Details
-
EPPDefRegCheckResult
public EPPDefRegCheckResult()Default constructor forEPPDefRegCheckResult. the defaults include the following:
- name is set to
null - level is set to
null - available is set to
true
The name must be set before invokingencode. - name is set to
-
EPPDefRegCheckResult
Constructor forEPPDefRegCheckResultthat includes the defReg name and the is available flag.- Parameters:
aName- DefReg name associated with resultaLevel- DefReg level associated with result, which should be eitherEPPDefRegName.LEVEL_STANDARDorEPPDefRegName.LEVEL_STANDARD.aIsAvailable- Is the defReg name available?
-
-
Method Details
-
clone
CloneEPPDefRegCheckResult.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classObject- Returns:
- clone of
EPPDefRegCheckResult - Throws:
CloneNotSupportedException- standard Object.clone exception
-
decode
Decode theEPPDefRegCheckResultattributes from the aElement DOM Element tree.- Specified by:
decodein interfaceEPPCodecComponent- Parameters:
aElement- Root DOM Element to decodeEPPDefRegCheckResultfrom.- Throws:
EPPDecodeException- Unable to decode aElement.
-
encode
Encode a DOM Element tree from the attributes of theEPPDefRegCheckResultinstance.- Specified by:
encodein interfaceEPPCodecComponent- Parameters:
aDocument- DOM Document that is being built. Used as an Element factory.- Returns:
- Element Root DOM Element representing the
EPPDefRegCheckResultinstance. - Throws:
EPPEncodeException- Unable to encodeEPPDefRegCheckResultinstance.
-
equals
Compare an instance ofEPPDefRegPingRespwith this instance. -
getDefRegReason
Gets defReg reason.- Returns:
- String of defReg reason.
-
getLanguage
Sets defReg reason to check.- Returns:
- String of defReg reason language.
-
getLevel
Gets the defReg level associated with the result. The level should be eitherEPPDefRegName.LEVEL_STANDARDorEPPDefRegName.LEVEL_STANDARD,- Returns:
- DefReg level associated with the result if defined;
nullotherwise.
-
getName
Gets the defReg name associated with the result.- Returns:
- DefReg name associated with the result if defined;
nullotherwise.
-
isAvailable
public boolean isAvailable()Gets if the defReg associated withEPPDomainCheckResultis available.- Returns:
- Is the defReg available?
-
setDefRegReason
Sets defReg reason.- Parameters:
aReason- DefReg Reason.
-
setIsAvailable
public void setIsAvailable(boolean aIsAvailable) Sets if the defReg associated withEPPDefRegCheckResultis available.- Parameters:
aIsAvailable- Is the defReg available?
-
setLanguage
Sets language attribute.- Parameters:
aLang- Sets defReg reason language attribute.
-
setLevel
Sets the defReg level associated with the result.- Parameters:
aLevel- DefReg Level associated with the result, which should be eitherEPPDefRegName.LEVEL_STANDARDorEPPDefRegName.LEVEL_STANDARD.
-
setName
Sets the defReg name associated with the result.- Parameters:
aName- DefReg Name associated with the result.
-
toString
Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent. -
validate
Validate the state of theEPPDefRegCreateCmdinstance. A valid state means that all of the required attributes have been set. If validateState returns without an exception, the state is valid. If the state is not valid, theEPPCodecExceptionwill contain a description of the error. throws EPPCodecException State error. This will contain the name of the attribute that is not valid.- Throws:
EPPEncodeException- DOCUMENT ME!
-
getNamespace
Returns the XML namespace associated with theEPPCodecComponent.- Specified by:
getNamespacein interfaceEPPCodecComponent- Returns:
- XML namespace for the
EPPCodecComponent.
-