public class EPPVerificationCode extends java.lang.Object implements EPPCodecComponent
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ELM_LOCALNAME
Constant for the local name
|
static java.lang.String |
ELM_NAME
Constant for the tag name
|
static int |
UNDEFINED
Undefined integer value
|
Constructor and Description |
---|
EPPVerificationCode()
Create an
EPPVerificationCode instance. |
EPPVerificationCode(java.lang.String aType,
java.util.Date aDueDate)
Create an
EPPVerificationCode with the code type and due
date. |
EPPVerificationCode(java.lang.String aCode,
java.lang.String aType)
Create an
EPPVerificationCode with the code value and the
type. |
EPPVerificationCode(java.lang.String aCode,
java.lang.String aType,
java.util.Date aSetDate)
Create an
EPPVerificationCode with the code, type, and set
date. |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone()
Clone
EPPVerificationCode . |
void |
decode(org.w3c.dom.Element aElement)
Decode the
EPPVerificationCode component |
org.w3c.dom.Element |
encode(org.w3c.dom.Document aDocument)
Sets all this instance's data in the given XML document
|
boolean |
equals(java.lang.Object aObject)
implements a deep
EPPVerificationCode compare. |
java.lang.String |
getCode()
Gets the code value.
|
java.util.Date |
getDueDate()
Gets the due date for the verification code.
|
java.lang.String |
getNamespace()
Returns the XML namespace associated with the
EPPCodecComponent . |
java.util.Date |
getSetDate()
Gets the date that the verification code was set.
|
java.lang.String |
getType()
Gets the code type.
|
java.lang.String |
getVerificationId()
Gets the Verification Identifier (verification-id) from the code.
|
int |
getVspId()
Gets the VSP Identifier (vsp-id) from the code.
|
boolean |
hasCode()
Has the code been set?
|
boolean |
hasDueDate()
Has the due date been set?
|
boolean |
hasSetDate()
Has the set date been set?
|
void |
setCode(java.lang.String aCode)
Sets the code value.
|
void |
setDueDate(java.util.Date aDueDate)
Sets the due date for the verification code.
|
void |
setSetDate(java.util.Date aSetDate)
Sets the date that the verification code was set.
|
void |
setType(java.lang.String aType)
Sets the code type.
|
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
public static final java.lang.String ELM_NAME
public static int UNDEFINED
public EPPVerificationCode()
EPPVerificationCode
instance.public EPPVerificationCode(java.lang.String aCode, java.lang.String aType)
EPPVerificationCode
with the code value and the
type. This constructor is used for passing the code with a transform
command.aCode
- Verification code valueaType
- Verification code typepublic EPPVerificationCode(java.lang.String aType, java.util.Date aDueDate)
EPPVerificationCode
with the code type and due
date. This constructor is used for the list of codes in the missing list.aType
- Verification code typeaDueDate
- Due date that the code must be setpublic EPPVerificationCode(java.lang.String aCode, java.lang.String aType, java.util.Date aSetDate)
EPPVerificationCode
with the code, type, and set
date. This constructor is used for the list of codes in the set list.aCode
- Verification code value. Pass null
if the code
value should not be set.aType
- Verification code typeaSetDate
- Date that the code was setpublic void decode(org.w3c.dom.Element aElement) throws EPPDecodeException
EPPVerificationCode
componentdecode
in interface EPPCodecComponent
aElement
- Root element of the EPPVerificationCode
EPPDecodeException
- Error decoding the EPPVerificationCode
public org.w3c.dom.Element encode(org.w3c.dom.Document aDocument) throws EPPEncodeException
encode
in interface EPPCodecComponent
aDocument
- a DOM Document to attach data to.EPPEncodeException
- Thrown if any errors prevent encoding.public java.lang.Object clone() throws java.lang.CloneNotSupportedException
EPPVerificationCode
. Signature element is not cloned.clone
in interface EPPCodecComponent
clone
in class java.lang.Object
EPPVerificationCode
java.lang.CloneNotSupportedException
- standard Object.clone exceptionpublic boolean equals(java.lang.Object aObject)
EPPVerificationCode
compare.equals
in class java.lang.Object
aObject
- EPPVerificationCode
instance to compare withtrue
if equal false
otherwisepublic boolean hasCode()
true
if the code has been set; false
otherwise.public java.lang.String getCode()
null
otherwise.public void setCode(java.lang.String aCode)
aCode
- Code value to setpublic int getVspId()
UNDEFINED
otherwise.public java.lang.String getVerificationId()
null
otherwise.public java.lang.String getType()
public void setType(java.lang.String aType)
aType
- Code type to setpublic boolean hasSetDate()
true
if the set date has been set;
false
otherwise.public java.util.Date getSetDate()
null
otherwise.public void setSetDate(java.util.Date aSetDate)
aSetDate
- Date that the verification code was set.public boolean hasDueDate()
true
if the due date has been set;
false
otherwise.public java.util.Date getDueDate()
null
otherwise.public void setDueDate(java.util.Date aDueDate)
aDueDate
- Due date for the verification codepublic 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
.Copyright © VeriSign Inc. All Rights Reserved.