public class EPPNamestoreExtNSExtErrData extends java.lang.Object implements EPPCodecComponent
EPPNamestoreExtNSExtErrDataERROR 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
EPPNamestoreExtNSExtErrData. |
static int |
ERROR_SUB_PRODUCT_NOT_EXISTS
Specified sub-product does not exist
|
| Constructor and Description |
|---|
EPPNamestoreExtNSExtErrData()
Default constructor.
|
EPPNamestoreExtNSExtErrData(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
EPPNamestoreExtNSExtErrData 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_SUB_PRODUCT_NOT_EXISTS
public static final java.lang.String ELM_NAME
EPPNamestoreExtNSExtErrData.public EPPNamestoreExtNSExtErrData()
public EPPNamestoreExtNSExtErrData(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 - 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 factoryEPPEncodeException - Error encoding
EPPNamestoreExtNSExtErrDatapublic 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 decodeEPPDecodeException - Error decoding Elementpublic boolean equals(java.lang.Object aObject)
EPPNamestoreExtNSExtErrData 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.ObjectEPPNamestoreExtNSExtErrDatajava.lang.CloneNotSupportedException - standard Object.clone exceptionprotected java.lang.String getRootElm()
public java.lang.String getNamespace()
EPPCodecComponent.getNamespace in interface EPPCodecComponentEPPCodecComponent.