public class EPPVerificationCodeProfile extends java.lang.Object implements EPPCodecComponent
| Modifier and Type | Class and Description |
|---|---|
static class |
EPPVerificationCodeProfile.Status
Verification statuses that include:
NOT_APPLICABLE - The profile status is not applicable to the
client based on the assigned verification profiles or the profile
specified.
NON_COMPLIANT - The object is non-compliant according to the
verification profile.
PENDING_COMPLIANCE - The object is not in compliance with the
verification profile, but has a grace period to set the required set of
verification codes, as reflected by the due date of the verification code
type.
COMPLIANT The object is compliant with the verification
profile.
|
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ELM_LOCALNAME
Constant for the profile local name
|
static java.lang.String |
ELM_NAME
Constant for the profile tag
|
| Constructor and Description |
|---|
EPPVerificationCodeProfile()
Create an
EPPVerificationCodeInfData instance. |
EPPVerificationCodeProfile(java.lang.String aProfileName,
EPPVerificationCodeProfile.Status aStatus)
Create a EPPVerificationCodeInfData instance with the required attributes
status.
|
EPPVerificationCodeProfile(java.lang.String aProfileName,
EPPVerificationCodeProfile.Status aStatus,
java.util.List<EPPVerificationCode> aMissingCodes,
java.util.List<EPPVerificationCode> aSetCodes)
Create a EPPVerificationCodeInfData instance with the all required and
optional attributes.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addMissingCode(EPPVerificationCode aMissingCode)
Add a missing code to the list of missing codes.
|
void |
addSetCode(EPPVerificationCode aSetCode)
Add a set code to the list of set codes.
|
java.lang.Object |
clone()
Clone
EPPVerificationCodeInfData. |
void |
decode(org.w3c.dom.Element aElement)
Decode the EPPVerificationCodeInfData 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
EPPVerificationCodeInfData compare. |
java.util.List<EPPVerificationCode> |
getMissingCodes()
Returns the list of missing codes.
|
java.lang.String |
getNamespace()
Returns the XML namespace associated with the
EPPCodecComponent. |
java.lang.String |
getProfileName()
Gets the verification profile name.
|
java.util.List<EPPVerificationCode> |
getSetCodes()
Returns the list of set codes.
|
EPPVerificationCodeProfile.Status |
getStatus()
Gets the verification status.
|
boolean |
hasMissingCodes()
Are there any missing codes?
|
boolean |
hasSetCodes()
Are there any set codes?
|
void |
setMissingCodes(java.util.List<EPPVerificationCode> aMissingCodes)
Sets the missing codes.
|
void |
setProfileName(java.lang.String aProfileName)
Sets the verification profile name.
|
void |
setSetCodes(java.util.List<EPPVerificationCode> aSetCodes)
Sets the set codes.
|
void |
setStatus(EPPVerificationCodeProfile.Status aStatus)
Sets the verification status.
|
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 EPPVerificationCodeProfile()
EPPVerificationCodeInfData instance.public EPPVerificationCodeProfile(java.lang.String aProfileName,
EPPVerificationCodeProfile.Status aStatus)
aProfileName - Name of the profileaStatus - Status of the verificationpublic EPPVerificationCodeProfile(java.lang.String aProfileName,
EPPVerificationCodeProfile.Status aStatus,
java.util.List<EPPVerificationCode> aMissingCodes,
java.util.List<EPPVerificationCode> aSetCodes)
aProfileName - Name of the profileaStatus - Status of the verificationaMissingCodes - OPTIONAL missing codes. Set to null if there are no
missing codes.aSetCodes - OPTIONAL set codes. Set to null if there are no set
codes.public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
EPPVerificationCodeInfData.clone in interface EPPCodecComponentclone in class java.lang.ObjectEPPVerificationCodeInfDatajava.lang.CloneNotSupportedException - standard Object.clone exceptionpublic 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 void decode(org.w3c.dom.Element aElement)
throws EPPDecodeException
decode in interface EPPCodecComponentaElement - Element to decode fromEPPDecodeException - On decoding errorpublic boolean equals(java.lang.Object aObject)
EPPVerificationCodeInfData compare.equals in class java.lang.ObjectaObject - EPPVerificationCodeInfData instance to compare withpublic java.lang.String getProfileName()
null otherwise.public void setProfileName(java.lang.String aProfileName)
aProfileName - Verification profilepublic EPPVerificationCodeProfile.Status getStatus()
public void setStatus(EPPVerificationCodeProfile.Status aStatus)
aStatus - Verification statuspublic boolean hasMissingCodes()
true if there are missing codes; false otherwise.public java.util.List<EPPVerificationCode> getMissingCodes()
public void setMissingCodes(java.util.List<EPPVerificationCode> aMissingCodes)
aMissingCodes - The list of missing codes. Set to null or an empty list
to indicate that there are no missing codes.public void addMissingCode(EPPVerificationCode aMissingCode)
aMissingCode - Missing code to add to the list of missing codes.public boolean hasSetCodes()
true if there are set codes; false otherwise.public java.util.List<EPPVerificationCode> getSetCodes()
public void setSetCodes(java.util.List<EPPVerificationCode> aSetCodes)
aSetCodes - The list of set codes. Set to null or an empty list to
indicate that there are no set codes.public void addSetCode(EPPVerificationCode aSetCode)
aSetCode - Set code to add to the list of set codes.public 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.public java.lang.String getNamespace()
EPPCodecComponent.getNamespace in interface EPPCodecComponentEPPCodecComponent.