Package com.verisign.epp.codec.rgpext
Class EPPRgpExtReportText
java.lang.Object
com.verisign.epp.codec.rgpext.EPPRgpExtReportText
- All Implemented Interfaces:
EPPCodecComponent,Serializable,Cloneable
The EPPRgpExtReportText is the EPPCodecComponent that knows how to encode and
decode RGP report text elements from/to XML and object instance. Does both
statements and reasons.
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCreate a new instance of EPPRgpExtReportTextEPPRgpExtReportText(String aMessage) Create a new instance of EPPRgpExtReportText with the given message string. -
Method Summary
Modifier and TypeMethodDescriptionclone()CloneEPPRgpExtReportText.voidPopulate the data of this instance with the data stored in the given Element of the DOM treeAttach all data to the DOM Document passed in.booleanImplements a deepEPPRgpExtReportTextcompare.getLang()Get the value of the lang attributeGet the current local name without the namespace prefix.Get the value of the message attributeReturns the XML namespace associated with theEPPCodecComponent.voidSets the value of the long attributevoidsetLocalName(String localName) Set the current local name without the namespace prefix.voidsetMessage(String message) set the value of the message attribute
-
Field Details
-
ELM_DEFAULT_LANG
Default Language -- English "en"- See Also:
-
ELM_RES_REASON
Element tag name for the resReason Element- See Also:
-
ELM_STATEMENT
Element tag name for the statement Element- See Also:
-
-
Constructor Details
-
EPPRgpExtReportText
public EPPRgpExtReportText()Create a new instance of EPPRgpExtReportText -
EPPRgpExtReportText
Create a new instance of EPPRgpExtReportText with the given message string.- Parameters:
aMessage- The message value to set
-
-
Method Details
-
encode
Attach all data to the DOM Document passed in.- Specified by:
encodein interfaceEPPCodecComponent- Parameters:
aDocument- The DOM Document to append data to- Returns:
- Encoded DOM
Element - Throws:
EPPEncodeException- Thrown when errors occur during the encode attempt or if the instance is invalid.
-
decode
Populate the data of this instance with the data stored in the given Element of the DOM tree- Specified by:
decodein interfaceEPPCodecComponent- Parameters:
aElement- The root element of the report fragment of XML- Throws:
EPPDecodeException- Thrown if any errors occur during decoding.
-
equals
Implements a deepEPPRgpExtReportTextcompare. -
clone
CloneEPPRgpExtReportText.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classObject- Returns:
- clone of
EPPRgpExtReportText - Throws:
CloneNotSupportedException- standard Object.clone exception
-
getLang
Get the value of the lang attribute- Returns:
- the value of the lang attribute
-
setLang
Sets the value of the long attribute- Parameters:
lang- the new value of the lang attribute
-
getMessage
Get the value of the message attribute- Returns:
- the value of the message attribute
-
setMessage
set the value of the message attribute- Parameters:
message- the value of the message attribute
-
getLocalName
Get the current local name without the namespace prefix. "statement" or "reason"- Returns:
- the current tage name.
-
setLocalName
Set the current local name without the namespace prefix.- Parameters:
localName- the new value of the tag name.
-
getNamespace
Returns the XML namespace associated with theEPPCodecComponent.- Specified by:
getNamespacein interfaceEPPCodecComponent- Returns:
- XML namespace for the
EPPCodecComponent.
-