Package com.verisign.epp.codec.nv
Class EPPNameVerificationCheckResult
java.lang.Object
com.verisign.epp.codec.nv.EPPNameVerificationCheckResult
- All Implemented Interfaces:
EPPCodecComponent,Serializable,Cloneable
EPPNameVerificationCheckResult represents the result of an
individual Name Verification label check. The attributes of
EPPNameVerificationCheckResult include the label and a boolean
value indicating if the label can be created as a Domain Name Verification
(DNV) object. The OPTIONAL reason defines why a label cannot create a Domain
Name Verification (DNV) object. An OPTIONAL "restricted" is used to
indicate whether or not the label is a restricted label, with a default value
of false.- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor forEPPNameVerificationCheckResult.EPPNameVerificationCheckResult(String aName, boolean aIsAvailable) Constructor forEPPNameVerificationCheckResultthat includes the label and the available flag.EPPNameVerificationCheckResult(String aName, boolean aIsAvailable, String aReason) Constructor forEPPNameVerificationCheckResultthat includes the label, availability flag, and the availability reason.EPPNameVerificationCheckResult(String aName, boolean aIsAvailable, String aReason, String aLanguage, boolean aRestricted) Constructor forEPPNameVerificationCheckResultthat includes all attributes. -
Method Summary
Modifier and TypeMethodDescriptionclone()CloneEPPNameVerificationCheckResult.voidDecode theEPPNameVerificationCheckResultattributes from the aElement DOM Element tree.Encode a DOM Element tree from the attributes of theEPPNameVerificationCheckResultinstance.booleanCompare an instance ofEPPNameVerificationCheckResultwith this instance.getLabel()Gets the label associated with the result.Gets the language attribute of the reason.Returns the XML namespace associated with theEPPCodecComponent.Gets the reason for the unavailable label.booleanGets if the label associated withEPPNameVerificationCheckResultis availability to be created.booleanIs the label a restricted label?voidsetIsAvailable(boolean aIsAvailable) Sets if the label associated withEPPNameVerificationCheckResultis availability to be created.voidSets the label associated with the result.voidsetLanguage(String aLanguage) Sets language attribute of the reason.voidSets the OPTIONAL reason for the unavailable label.voidsetRestricted(boolean aRestricted) Sets if the label is a restricted label.toString()Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.
-
Field Details
-
ELM_LOCALNAME
Constant for the result local name- See Also:
-
ELM_NAME
Constant for the profile tag- See Also:
-
-
Constructor Details
-
EPPNameVerificationCheckResult
public EPPNameVerificationCheckResult()Default constructor forEPPNameVerificationCheckResult. -
EPPNameVerificationCheckResult
Constructor forEPPNameVerificationCheckResultthat includes the label and the available flag.- Parameters:
aName- Label associated with resultaIsAvailable- Is the label available to be created?
-
EPPNameVerificationCheckResult
Constructor forEPPNameVerificationCheckResultthat includes the label, availability flag, and the availability reason.- Parameters:
aName- Label associated with resultaIsAvailable- Is the label available to be created?aReason- Reason that label is not available
-
EPPNameVerificationCheckResult
public EPPNameVerificationCheckResult(String aName, boolean aIsAvailable, String aReason, String aLanguage, boolean aRestricted) Constructor forEPPNameVerificationCheckResultthat includes all attributes.- Parameters:
aName- Label associated with resultaIsAvailable- Is the label available to be created?aReason- Reason that label is not availableaLanguage- Language of theaReasonvalue.aRestricted- Is the label restricted?
-
-
Method Details
-
getLabel
Gets the label associated with the result.- Returns:
- Label associated with the result if defined;
nullotherwise.
-
setLabel
Sets the label associated with the result.- Parameters:
aLabel- Label associated with the result.
-
isAvailable
public boolean isAvailable()Gets if the label associated withEPPNameVerificationCheckResultis availability to be created.- Returns:
- Is the label available? If
false, callgetReason()for the unavailable reason.
-
setIsAvailable
public void setIsAvailable(boolean aIsAvailable) Sets if the label associated withEPPNameVerificationCheckResultis availability to be created.- Parameters:
aIsAvailable- Is the label available to be created?
-
setReason
Sets the OPTIONAL reason for the unavailable label.- Parameters:
aReason- OPTIONAL reason value.
-
getReason
Gets the reason for the unavailable label.- Returns:
- String of domain reason.
-
setLanguage
Sets language attribute of the reason.- Parameters:
aLanguage- Sets the reason language attribute.
-
getLanguage
Gets the language attribute of the reason.- Returns:
- The language of the reason
-
isRestricted
public boolean isRestricted()Is the label a restricted label?- Returns:
trueif the label is restricted;falseotherwise.
-
setRestricted
public void setRestricted(boolean aRestricted) Sets if the label is a restricted label.- Parameters:
aRestricted-trueif the label is restricted;falseotherwise.
-
encode
Encode a DOM Element tree from the attributes of theEPPNameVerificationCheckResultinstance.- Specified by:
encodein interfaceEPPCodecComponent- Parameters:
aDocument- DOM Document that is being built. Used as an Element factory.- Returns:
- Element Root DOM Element representing the
EPPNameVerificationCheckResultinstance. - Throws:
EPPEncodeException- Unable to encodeEPPNameVerificationCheckResultinstance.
-
decode
Decode theEPPNameVerificationCheckResultattributes from the aElement DOM Element tree.- Specified by:
decodein interfaceEPPCodecComponent- Parameters:
aElement- Root DOM Element to decodeEPPNameVerificationCheckResultfrom.- Throws:
EPPDecodeException- Unable to decode aElement.
-
equals
Compare an instance ofEPPNameVerificationCheckResultwith this instance. -
clone
CloneEPPNameVerificationCheckResult.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classObject- Returns:
- clone of
EPPNameVerificationCheckResult - 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.
-