Class EPPRgpExtReport

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

public class EPPRgpExtReport extends Object implements EPPCodecComponent
The EPPRgpExtReport is the EPPCodecComponent that knows how to encode and decode RGP report elements from/to XML and object instance.
See Also:
  • Field Details

  • Constructor Details

    • EPPRgpExtReport

      public EPPRgpExtReport()
      Instantiate a new instance of the EPPCodecComponent EPPRgpExtReport
    • EPPRgpExtReport

      public EPPRgpExtReport(String aPreData, String aPostData, Date aDeleteTime, Date aRestoreTime, EPPRgpExtReportText aRestoreReason, EPPRgpExtReportText aStatement1)
      Creates EPPRgpExtReport with required attributes.
      Parameters:
      aPreData - Pre data / whois
      aPostData - Post data / whois
      aDeleteTime - Deletion time
      aRestoreTime - Restore time
      aRestoreReason - Restore reason
      aStatement1 - Statement
  • 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 EPPRgpExtReport compare.
      Overrides:
      equals in class Object
      Parameters:
      aObject - EPPRgpExtReport instance to compare with
      Returns:
      true if equal false otherwise
    • clone

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

      @Deprecated public String getPreWhois()
      Deprecated.
      Gets the preWhois value
      Returns:
      the preWhois value
    • setPreWhois

      @Deprecated public void setPreWhois(String preWhois)
      Deprecated.
      Set the preWhois value
      Parameters:
      preWhois - the new preWhois value
    • getPreData

      public String getPreData()
      Gets the preWhois value
      Returns:
      the preWhois value
    • setPreData

      public void setPreData(String aPreData)
      Set the preWhois value
      Parameters:
      aPreData - the new preWhois value
    • getPostData

      public String getPostData()
      get the postData value
      Returns:
      the postData value
    • setPostData

      public void setPostData(String aPostData)
      Set the postWhois value
      Parameters:
      aPostData - The new postWhois value
    • getDeleteTime

      public Date getDeleteTime()
      Get the deleteTime value
      Returns:
      the deleteTime value
    • setDeleteTime

      public void setDeleteTime(Date deleteTime)
      Set the deleteTime value
      Parameters:
      deleteTime - the new deleteTime value
    • getRestoreTime

      public Date getRestoreTime()
      Get the restoreTime value
      Returns:
      the restoreTime value
    • setRestoreTime

      public void setRestoreTime(Date restoreTime)
      Set the restoreTime value
      Parameters:
      restoreTime - the new restoreTime value
    • getStatement1

      public EPPRgpExtReportText getStatement1()
      get the statement1 value
      Returns:
      the statement1 value
    • setStatement1

      public void setStatement1(EPPRgpExtReportText statement1)
      Set the statement1 value
      Parameters:
      statement1 - the new statement1 value
    • getStatement2

      public EPPRgpExtReportText getStatement2()
      get the statement2 value
      Returns:
      the statement2 value
    • setStatement2

      public void setStatement2(EPPRgpExtReportText statement2)
      Set the statement 2 value.
      Parameters:
      statement2 - The new statement2 value
    • getRestoreReason

      public EPPRgpExtReportText getRestoreReason()
      Get the restoreReason value
      Returns:
      the current restoreReason value
    • setRestoreReason

      public void setRestoreReason(EPPRgpExtReportText restoreReason)
      Set the restoreReason value
      Parameters:
      restoreReason - the new restoreReason Value
    • getOther

      public String getOther()
      Get the other value (optional)
      Returns:
      the other value
    • setOther

      public void setOther(String other)
      Set the other value on this instance
      Parameters:
      other - the new other value
    • getNamespace

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