Package com.verisign.epp.codec.nv
Class EPPDomainNameVerification
- java.lang.Object
-
- com.verisign.epp.codec.nv.EPPDomainNameVerification
-
- All Implemented Interfaces:
EPPCodecComponent,java.io.Serializable,java.lang.Cloneable
public class EPPDomainNameVerification extends java.lang.Object implements EPPCodecComponent
Represents a Domain Name Verification (DNV) used inEPPNameVerificationCreateCmdand theEPPNameVerificationInfoResp.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringELM_LOCALNAMEXML local name forEPPDomainNameVerification.static java.lang.StringELM_NAMEXML root tag forEPPDomainNameVerification.
-
Constructor Summary
Constructors Constructor Description EPPDomainNameVerification()EPPDomainNameVerificationdefault constructor.EPPDomainNameVerification(java.lang.String aName)EPPDomainNameVerificationconstructor that takes the required domain label.EPPDomainNameVerification(java.lang.String aName, java.lang.String aRnvCode)EPPDomainNameVerificationconstructor that takes the required domain label and the optional Real Name Verification Code Token value for verification of a Restricted Name.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Objectclone()CloneEPPDomainNameVerification.voiddecode(org.w3c.dom.Element aElement)Decode theEPPDomainNameVerificationattributes from the aElement DOM Element tree.org.w3c.dom.Elementencode(org.w3c.dom.Document aDocument)Encode a DOM Element tree from the attributes of theEPPDomainNameVerificationinstance.booleanequals(java.lang.Object aObject)Compare an instance ofEPPDomainNameVerificationwith this instance.java.lang.StringgetName()Gets the domain label for verificationjava.lang.StringgetNamespace()Returns the XML namespace associated with theEPPCodecComponent.java.lang.StringgetRnvCode()Gets the Real Name Verification Code Token value.booleanhasRnvCode()Has the Real Name Verification Code Token value been set?voidsetName(java.lang.String aName)Sets the domain label for verification.voidsetRnvCode(java.lang.String aRnvCode)Sets the Real Name Verification Code Token value.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 forEPPDomainNameVerification.- See Also:
- Constant Field Values
-
ELM_NAME
public static final java.lang.String ELM_NAME
XML root tag forEPPDomainNameVerification.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
EPPDomainNameVerification
public EPPDomainNameVerification()
EPPDomainNameVerificationdefault constructor.
-
EPPDomainNameVerification
public EPPDomainNameVerification(java.lang.String aName)
EPPDomainNameVerificationconstructor that takes the required domain label.- Parameters:
aName- Domain label to verify
-
EPPDomainNameVerification
public EPPDomainNameVerification(java.lang.String aName, java.lang.String aRnvCode)EPPDomainNameVerificationconstructor that takes the required domain label and the optional Real Name Verification Code Token value for verification of a Restricted Name.- Parameters:
aName- Domain label to verifyaRnvCode- OPTIONAL Real Name Verification Code Token value. Set tonullif undefined.
-
-
Method Detail
-
getName
public java.lang.String getName()
Gets the domain label for verification- Returns:
- The domain label for verification
-
setName
public void setName(java.lang.String aName)
Sets the domain label for verification.- Parameters:
aName- Domain label for verification
-
hasRnvCode
public boolean hasRnvCode()
Has the Real Name Verification Code Token value been set?- Returns:
trueif the code has been set;falseotherwise.
-
getRnvCode
public java.lang.String getRnvCode()
Gets the Real Name Verification Code Token value.- Returns:
- Real Name Verification Code Token value if defined;
nullotherwise.
-
setRnvCode
public void setRnvCode(java.lang.String aRnvCode)
Sets the Real Name Verification Code Token value.- Parameters:
aRnvCode- Real Name Verification Code Token value. Set tonullif undefined.
-
encode
public org.w3c.dom.Element encode(org.w3c.dom.Document aDocument) throws EPPEncodeExceptionEncode a DOM Element tree from the attributes of theEPPDomainNameVerificationinstance.- Specified by:
encodein interfaceEPPCodecComponent- Parameters:
aDocument- DOM Document that is being built. Used as an Element factory.- Returns:
- Element Root DOM Element representing the
EPPDomainNameVerificationinstance. - Throws:
EPPEncodeException- Unable to encodeEPPDomainNameVerificationinstance.
-
decode
public void decode(org.w3c.dom.Element aElement) throws EPPDecodeExceptionDecode theEPPDomainNameVerificationattributes from the aElement DOM Element tree.- Specified by:
decodein interfaceEPPCodecComponent- Parameters:
aElement- Root DOM Element to decodeEPPDomainNameVerificationfrom.- Throws:
EPPDecodeException- Unable to decode aElement
-
equals
public boolean equals(java.lang.Object aObject)
Compare an instance ofEPPDomainNameVerificationwith 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.
-
clone
public java.lang.Object clone() throws java.lang.CloneNotSupportedExceptionCloneEPPDomainNameVerification.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classjava.lang.Object- Returns:
- Deep copy clone of
EPPDomainNameVerification - 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.
-
-