public class EPPDomainNameVerification extends java.lang.Object implements EPPCodecComponent
EPPNameVerificationCreateCmd
and the
EPPNameVerificationInfoResp
.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ELM_LOCALNAME
XML local name for
EPPDomainNameVerification . |
static java.lang.String |
ELM_NAME
XML root tag for
EPPDomainNameVerification . |
Constructor and Description |
---|
EPPDomainNameVerification()
EPPDomainNameVerification default constructor. |
EPPDomainNameVerification(java.lang.String aName)
EPPDomainNameVerification constructor that takes the
required domain label. |
EPPDomainNameVerification(java.lang.String aName,
java.lang.String aRnvCode)
EPPDomainNameVerification constructor that takes the
required domain label and the optional Real Name Verification Code Token
value for verification of a Restricted Name. |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone()
Clone
EPPDomainNameVerification . |
void |
decode(org.w3c.dom.Element aElement)
Decode the
EPPDomainNameVerification attributes from the
aElement DOM Element tree. |
org.w3c.dom.Element |
encode(org.w3c.dom.Document aDocument)
Encode a DOM Element tree from the attributes of the
EPPDomainNameVerification instance. |
boolean |
equals(java.lang.Object aObject)
Compare an instance of
EPPDomainNameVerification with this
instance. |
java.lang.String |
getName()
Gets the domain label for verification
|
java.lang.String |
getNamespace()
Returns the XML namespace associated with the
EPPCodecComponent . |
java.lang.String |
getRnvCode()
Gets the Real Name Verification Code Token value.
|
boolean |
hasRnvCode()
Has the Real Name Verification Code Token value been set?
|
void |
setName(java.lang.String aName)
Sets the domain label for verification.
|
void |
setRnvCode(java.lang.String aRnvCode)
Sets the Real Name Verification Code Token value.
|
java.lang.String |
toString()
Implementation of
Object.toString , which will result in an
indented XML String representation of the concrete
EPPCodecComponent . |
public static final java.lang.String ELM_LOCALNAME
EPPDomainNameVerification
.public static final java.lang.String ELM_NAME
EPPDomainNameVerification
.public EPPDomainNameVerification()
EPPDomainNameVerification
default constructor.public EPPDomainNameVerification(java.lang.String aName)
EPPDomainNameVerification
constructor that takes the
required domain label.aName
- Domain label to verifypublic EPPDomainNameVerification(java.lang.String aName, java.lang.String aRnvCode)
EPPDomainNameVerification
constructor that takes the
required domain label and the optional Real Name Verification Code Token
value for verification of a Restricted Name.aName
- Domain label to verifyaRnvCode
- OPTIONAL Real Name Verification Code Token value. Set to
null
if undefined.public java.lang.String getName()
public void setName(java.lang.String aName)
aName
- Domain label for verificationpublic boolean hasRnvCode()
true
if the code has been set; false
otherwise.public java.lang.String getRnvCode()
null
otherwise.public void setRnvCode(java.lang.String aRnvCode)
aRnvCode
- Real Name Verification Code Token value. Set to
null
if undefined.public org.w3c.dom.Element encode(org.w3c.dom.Document aDocument) throws EPPEncodeException
EPPDomainNameVerification
instance.encode
in interface EPPCodecComponent
aDocument
- DOM Document that is being built. Used as an Element factory.EPPDomainNameVerification
instance.EPPEncodeException
- Unable to encode EPPDomainNameVerification
instance.public void decode(org.w3c.dom.Element aElement) throws EPPDecodeException
EPPDomainNameVerification
attributes from the
aElement DOM Element tree.decode
in interface EPPCodecComponent
aElement
- Root DOM Element to decode
EPPDomainNameVerification
from.EPPDecodeException
- Unable to decode aElementpublic boolean equals(java.lang.Object aObject)
EPPDomainNameVerification
with this
instance.equals
in class java.lang.Object
aObject
- Object to compare with.true
if this object is the same as the aObject argument;
false
otherwise.public java.lang.Object clone() throws java.lang.CloneNotSupportedException
EPPDomainNameVerification
.clone
in interface EPPCodecComponent
clone
in class java.lang.Object
EPPDomainNameVerification
java.lang.CloneNotSupportedException
- standard Object.clone exceptionpublic java.lang.String toString()
Object.toString
, which will result in an
indented XML String
representation of the concrete
EPPCodecComponent
.toString
in class java.lang.Object
String
if successful;
ERROR
otherwise.public java.lang.String getNamespace()
EPPCodecComponent
.getNamespace
in interface EPPCodecComponent
EPPCodecComponent
.