Class EPPRgpExtUpdate

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

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

  • Constructor Details

    • EPPRgpExtUpdate

      public EPPRgpExtUpdate()
      Create a new EPPRgpExtUpdate instance
    • EPPRgpExtUpdate

      public EPPRgpExtUpdate(EPPRgpExtRestore aRestore)
      Create a new EPPRgpExtUpdate instance with contained request or report.
      Parameters:
      aRestore - the new contained restore request or report
  • Method Details

    • encode

      public Element encode(Document aDocument) throws EPPEncodeException
      Append all data from this RGP inf data to the given DOM Document
      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.
    • getNamespace

      public String getNamespace()
      Returns the RGP namespace
      Specified by:
      getNamespace in interface EPPCodecComponent
      Returns:
      the RGP namespace
    • equals

      public boolean equals(Object aObject)
      implements a deep EPPRgpExtUpdate compare.
      Overrides:
      equals in class Object
      Parameters:
      aObject - EPPRgpExtUpdate instance to compare with
      Returns:
      true if equal false otherwise
    • 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.
    • clone

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

      public EPPRgpExtRestore getRestore()
      Gets the contained restore request or report.
      Returns:
      the contained restore request or report
    • setRestore

      public void setRestore(EPPRgpExtRestore aRestore)
      Sets the contained restore request or report.
      Parameters:
      aRestore - the new contained restore request or report