Package com.verisign.epp.codec.nv
Class EPPNameVerificationCheckResult
- java.lang.Object
-
- com.verisign.epp.codec.nv.EPPNameVerificationCheckResult
-
- All Implemented Interfaces:
EPPCodecComponent,java.io.Serializable,java.lang.Cloneable
public class EPPNameVerificationCheckResult extends java.lang.Object implements EPPCodecComponent
EPPNameVerificationCheckResultrepresents the result of an individual Name Verification label check. The attributes ofEPPNameVerificationCheckResultinclude 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 offalse.- See Also:
EPPNameVerificationCheckResp, Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringELM_LOCALNAMEConstant for the result local namestatic java.lang.StringELM_NAMEConstant for the profile tag
-
Constructor Summary
Constructors Constructor Description EPPNameVerificationCheckResult()Default constructor forEPPNameVerificationCheckResult.EPPNameVerificationCheckResult(java.lang.String aName, boolean aIsAvailable)Constructor forEPPNameVerificationCheckResultthat includes the label and the available flag.EPPNameVerificationCheckResult(java.lang.String aName, boolean aIsAvailable, java.lang.String aReason)Constructor forEPPNameVerificationCheckResultthat includes the label, availability flag, and the availability reason.EPPNameVerificationCheckResult(java.lang.String aName, boolean aIsAvailable, java.lang.String aReason, java.lang.String aLanguage, boolean aRestricted)Constructor forEPPNameVerificationCheckResultthat includes all attributes.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Objectclone()CloneEPPNameVerificationCheckResult.voiddecode(org.w3c.dom.Element aElement)Decode theEPPNameVerificationCheckResultattributes from the aElement DOM Element tree.org.w3c.dom.Elementencode(org.w3c.dom.Document aDocument)Encode a DOM Element tree from the attributes of theEPPNameVerificationCheckResultinstance.booleanequals(java.lang.Object aObject)Compare an instance ofEPPNameVerificationCheckResultwith this instance.java.lang.StringgetLabel()Gets the label associated with the result.java.lang.StringgetLanguage()Gets the language attribute of the reason.java.lang.StringgetNamespace()Returns the XML namespace associated with theEPPCodecComponent.java.lang.StringgetReason()Gets the reason for the unavailable label.booleanisAvailable()Gets if the label associated withEPPNameVerificationCheckResultis availability to be created.booleanisRestricted()Is the label a restricted label?voidsetIsAvailable(boolean aIsAvailable)Sets if the label associated withEPPNameVerificationCheckResultis availability to be created.voidsetLabel(java.lang.String aLabel)Sets the label associated with the result.voidsetLanguage(java.lang.String aLanguage)Sets language attribute of the reason.voidsetReason(java.lang.String aReason)Sets the OPTIONAL reason for the unavailable label.voidsetRestricted(boolean aRestricted)Sets if the label is a restricted label.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
Constant for the result local name- See Also:
- Constant Field Values
-
ELM_NAME
public static final java.lang.String ELM_NAME
Constant for the profile tag- See Also:
- Constant Field Values
-
-
Constructor Detail
-
EPPNameVerificationCheckResult
public EPPNameVerificationCheckResult()
Default constructor forEPPNameVerificationCheckResult.
-
EPPNameVerificationCheckResult
public EPPNameVerificationCheckResult(java.lang.String aName, boolean aIsAvailable)Constructor forEPPNameVerificationCheckResultthat includes the label and the available flag.- Parameters:
aName- Label associated with resultaIsAvailable- Is the label available to be created?
-
EPPNameVerificationCheckResult
public EPPNameVerificationCheckResult(java.lang.String aName, boolean aIsAvailable, java.lang.String aReason)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(java.lang.String aName, boolean aIsAvailable, java.lang.String aReason, java.lang.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 Detail
-
getLabel
public java.lang.String getLabel()
Gets the label associated with the result.- Returns:
- Label associated with the result if defined;
nullotherwise.
-
setLabel
public void setLabel(java.lang.String aLabel)
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
public void setReason(java.lang.String aReason)
Sets the OPTIONAL reason for the unavailable label.- Parameters:
aReason- OPTIONAL reason value.
-
getReason
public java.lang.String getReason()
Gets the reason for the unavailable label.- Returns:
- String of domain reason.
-
setLanguage
public void setLanguage(java.lang.String aLanguage)
Sets language attribute of the reason.- Parameters:
aLanguage- Sets the reason language attribute.
-
getLanguage
public java.lang.String 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
public org.w3c.dom.Element encode(org.w3c.dom.Document aDocument) throws EPPEncodeExceptionEncode 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
public void decode(org.w3c.dom.Element aElement) throws EPPDecodeExceptionDecode 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
public boolean equals(java.lang.Object aObject)
Compare an instance ofEPPNameVerificationCheckResultwith this instance.- Overrides:
equalsin classjava.lang.Object- Parameters:
aObject- Object to compare with.- Returns:
trueif equal;falseotherwise.
-
clone
public java.lang.Object clone() throws java.lang.CloneNotSupportedExceptionCloneEPPNameVerificationCheckResult.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classjava.lang.Object- Returns:
- clone of
EPPNameVerificationCheckResult - Throws:
java.lang.CloneNotSupportedException- standard Object.clone exception
-
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.
-
getNamespace
public java.lang.String getNamespace()
Returns the XML namespace associated with theEPPCodecComponent.- Specified by:
getNamespacein interfaceEPPCodecComponent- Returns:
- XML namespace for the
EPPCodecComponent.
-
-