|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.verisign.epp.codec.namestoreext.EPPNamestoreExtNSExtErrData
public class EPPNamestoreExtNSExtErrData
Namestore <nsExtErrData> extension element to an error EPP Response. The
error code and message is currently associated with an EPP response code of
2306 "Parameter value policy error", and can have one of the
EPPNamestoreExtNSExtErrData
ERROR
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 EPPNamestoreExtNSExtErrData . |
static int |
ERROR_SUB_PRODUCT_NOT_EXISTS
Specified sub-product does not exist |
Constructor Summary | |
---|---|
EPPNamestoreExtNSExtErrData()
Default constructor. |
|
EPPNamestoreExtNSExtErrData(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 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. |
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_SUB_PRODUCT_NOT_EXISTS
public static final java.lang.String ELM_NAME
EPPNamestoreExtNSExtErrData
.
Constructor Detail |
---|
public EPPNamestoreExtNSExtErrData()
public EPPNamestoreExtNSExtErrData(int aCode)
ERROR
constants for the error code.
aCode
- Error codeMethod 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 EPPCodecComponent
aDocument
- DOM Document, which acts is an Element factory
EPPEncodeException
- Error encoding
EPPNamestoreExtNSExtErrData
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 decode
EPPDecodeException
- Error decoding Element
public boolean equals(java.lang.Object aObject)
EPPNamestoreExtNSExtErrData
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
EPPNamestoreExtNSExtErrData
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 |