|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.verisign.epp.codec.persreg.EPPPersRegCreateErrData
public class EPPPersRegCreateErrData
Personal Registration <creErrData> extension element to an error EPP
Create Response. The error code and message is currently associated with
an EPP response code of 2305 "Object association prohibits operation", and
can have one of the EPPPersRegCreateErrDataERROR
constant values. Optionally, a "lang" attribute can be provide to indicate
the language. The default value for "lang" is "en" (English).
| Field Summary | |
|---|---|
static java.lang.String |
DEFAULT_LANG
The default language of the error message "en". |
static java.lang.String |
ELM_NAME
XML root tag for EPPPersRegCreateErrData. |
static int |
ERROR_CS_EXISTS
Corresponding service exists |
static int |
ERROR_DEFREG_EXISTS
Conflicting defensive registration exists |
| Constructor Summary | |
|---|---|
EPPPersRegCreateErrData()
Default constructor. |
|
EPPPersRegCreateErrData(int aCode)
Constructor that sets the error code. |
|
| Method Summary | |
|---|---|
java.lang.Object |
clone()
clone an EPPCodecComponent. |
void |
decode(org.w3c.dom.Element aElement)
decode a DOM element tree to initialize the instance attributes. |
org.w3c.dom.Element |
encode(org.w3c.dom.Document aDocument)
encode instance into a DOM element tree. |
boolean |
equals(java.lang.Object aObject)
Compare an instance of EPPPersRegCreateErrData with this
instance. |
int |
getCode()
Gets the error code. |
java.lang.String |
getLang()
Gets the error message language. |
java.lang.String |
getMessage()
Gets the error message. |
protected java.lang.String |
getRootElm()
Gets the root element name. |
void |
setCode(int aCode)
Sets the error code. |
void |
setCode(int aCode,
boolean aUseDefaultMessage)
Sets the error code and the default "en" message associated with the error code if aUserDefaultMessage is set to
true. |
void |
setLang(java.lang.String aLang)
Sets the error message language. |
void |
setMessage(java.lang.String aMessage)
Sets the error message. |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String DEFAULT_LANG
public static final int ERROR_CS_EXISTS
public static final int ERROR_DEFREG_EXISTS
public static final java.lang.String ELM_NAME
EPPPersRegCreateErrData.
| Constructor Detail |
|---|
public EPPPersRegCreateErrData()
public EPPPersRegCreateErrData(int aCode)
ERROR
constants for the error code.
aCode - Error code| Method Detail |
|---|
public int getCode()
ERROR constant
values.public void setCode(int aCode)
aCode - Error code that should be one of the ERROR
constant values.
public void setCode(int aCode,
boolean aUseDefaultMessage)
aUserDefaultMessage is set to
true.
aCode - Error code that should be one of the ERROR
constant values.aUseDefaultMessage - Use the default en message associated with
aCode?public java.lang.String getMessage()
public void setMessage(java.lang.String aMessage)
aMessage - Error message associated with the error code in the
specified language.public java.lang.String getLang()
public void setLang(java.lang.String aLang)
aLang - DOCUMENT ME!
public org.w3c.dom.Element encode(org.w3c.dom.Document aDocument)
throws EPPEncodeException
encode in interface EPPCodecComponentaDocument - DOM Document, which acts is an Element factory
EPPEncodeException - Error encoding
EPPPersRegCreate
public void decode(org.w3c.dom.Element aElement)
throws EPPDecodeException
aElement argument represents the root DOM element and is
used to traverse the DOM nodes for instance attribute values.
decode in interface EPPCodecComponentaElement - Element to decode
EPPDecodeException - Error decoding Elementpublic boolean equals(java.lang.Object aObject)
EPPPersRegCreateErrData with this
instance.
equals in class java.lang.ObjectaObject - Object to compare with.
true if equal; false otherwise.
public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
EPPCodecComponent.
clone in interface EPPCodecComponentclone in class java.lang.ObjectEPPPersRegCreateErrData
java.lang.CloneNotSupportedException - standard Object.clone exceptionprotected java.lang.String getRootElm()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||