public class EPPPersRegCreateErrData extends java.lang.Object implements EPPCodecComponent
EPPPersRegCreateErrData
ERROR
constant values.
Optionally, a "lang" attribute can be provide to indicate the language. The
default value for "lang" is "en" (English). Modifier and Type | Field and Description |
---|---|
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 and Description |
---|
EPPPersRegCreateErrData()
Default constructor.
|
EPPPersRegCreateErrData(int aCode)
Constructor that sets the error code.
|
Modifier and Type | Method and Description |
---|---|
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.
|
java.lang.String |
getNamespace()
Returns the XML namespace associated with the
EPPCodecComponent . |
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.
|
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
.public EPPPersRegCreateErrData()
public EPPPersRegCreateErrData(int aCode)
ERROR
constants for the error code.aCode
- Error codepublic 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
- Error message languagepublic org.w3c.dom.Element encode(org.w3c.dom.Document aDocument) throws EPPEncodeException
encode
in interface EPPCodecComponent
aDocument
- DOM Document, which acts is an Element factoryEPPEncodeException
- 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 EPPCodecComponent
aElement
- Element
to decodeEPPDecodeException
- Error decoding Element
public boolean equals(java.lang.Object aObject)
EPPPersRegCreateErrData
with this instance.equals
in class java.lang.Object
aObject
- Object to compare with.true
if equal; false
otherwise.public java.lang.Object clone() throws java.lang.CloneNotSupportedException
EPPCodecComponent
.clone
in interface EPPCodecComponent
clone
in class java.lang.Object
EPPPersRegCreateErrData
java.lang.CloneNotSupportedException
- standard Object.clone exceptionprotected java.lang.String getRootElm()
public java.lang.String getNamespace()
EPPCodecComponent
.getNamespace
in interface EPPCodecComponent
EPPCodecComponent
.