Class EPPRgpExtReportText

java.lang.Object
com.verisign.epp.codec.rgpext.EPPRgpExtReportText
All Implemented Interfaces:
EPPCodecComponent, Serializable, Cloneable

public class EPPRgpExtReportText extends Object implements EPPCodecComponent
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 Details

  • Constructor Details

    • EPPRgpExtReportText

      public EPPRgpExtReportText()
      Create a new instance of EPPRgpExtReportText
    • EPPRgpExtReportText

      public EPPRgpExtReportText(String aMessage)
      Create a new instance of EPPRgpExtReportText with the given message string.
      Parameters:
      aMessage - The message value to set
  • Method Details

    • encode

      public Element encode(Document aDocument) throws EPPEncodeException
      Attach all data to the DOM Document passed in.
      Specified by:
      encode in interface EPPCodecComponent
      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

      public void decode(Element aElement) throws EPPDecodeException
      Populate the data of this instance with the data stored in the given Element of the DOM tree
      Specified by:
      decode in interface EPPCodecComponent
      Parameters:
      aElement - The root element of the report fragment of XML
      Throws:
      EPPDecodeException - Thrown if any errors occur during decoding.
    • equals

      public boolean equals(Object aObject)
      Implements a deep EPPRgpExtReportText compare.
      Overrides:
      equals in class Object
      Parameters:
      aObject - EPPRgpExtReportText instance to compare with
      Returns:
      true if equal false otherwise
    • clone

      public Object clone() throws CloneNotSupportedException
      Clone EPPRgpExtReportText.
      Specified by:
      clone in interface EPPCodecComponent
      Overrides:
      clone in class Object
      Returns:
      clone of EPPRgpExtReportText
      Throws:
      CloneNotSupportedException - standard Object.clone exception
    • getLang

      public String getLang()
      Get the value of the lang attribute
      Returns:
      the value of the lang attribute
    • setLang

      public void setLang(String lang)
      Sets the value of the long attribute
      Parameters:
      lang - the new value of the lang attribute
    • getMessage

      public String getMessage()
      Get the value of the message attribute
      Returns:
      the value of the message attribute
    • setMessage

      public void setMessage(String message)
      set the value of the message attribute
      Parameters:
      message - the value of the message attribute
    • getLocalName

      public String getLocalName()
      Get the current local name without the namespace prefix. "statement" or "reason"
      Returns:
      the current tage name.
    • setLocalName

      public void setLocalName(String localName)
      Set the current local name without the namespace prefix.
      Parameters:
      localName - the new value of the tag name.
    • getNamespace

      public String getNamespace()
      Returns the XML namespace associated with the EPPCodecComponent.
      Specified by:
      getNamespace in interface EPPCodecComponent
      Returns:
      XML namespace for the EPPCodecComponent.