|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.verisign.epp.codec.verificationcode.EPPVerificationCode
public class EPPVerificationCode
Class for representing the various forms of the verification code, which include:
| Field Summary | |
|---|---|
static java.lang.String |
ELM_LOCALNAME
Constant for the local name |
static java.lang.String |
ELM_NAME
Constant for the tag name |
| Constructor Summary | |
|---|---|
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. |
|
| Method Summary | |
|---|---|
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.util.Date |
getSetDate()
Gets the date that the verification code was set. |
java.lang.String |
getType()
Gets the code type. |
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. |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String ELM_LOCALNAME
public static final java.lang.String ELM_NAME
| Constructor Detail |
|---|
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 type
public 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 set
public 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 set| Method Detail |
|---|
public void decode(org.w3c.dom.Element aElement)
throws EPPDecodeException
EPPVerificationCode component
decode in interface EPPCodecComponentaElement - 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 EPPCodecComponentaDocument - 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 EPPCodecComponentclone in class java.lang.ObjectEPPVerificationCode
java.lang.CloneNotSupportedException - standard Object.clone exceptionpublic boolean equals(java.lang.Object aObject)
EPPVerificationCode compare.
equals in class java.lang.ObjectaObject - EPPVerificationCode instance to compare with
true 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 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.ObjectString if successful;
ERROR otherwise.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||