Class EPPRgpExtInfData

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

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

  • Constructor Details

    • EPPRgpExtInfData

      public EPPRgpExtInfData()
      Instantiate a new instance of EPPRgpExtInfData
    • EPPRgpExtInfData

      public EPPRgpExtInfData(EPPRgpExtStatus aStatus)
      Creates a new instance of the EPPRgpExtInfData with a status element.
      Parameters:
      aStatus - Associated status element.
    • EPPRgpExtInfData

      public EPPRgpExtInfData(Vector<EPPRgpExtStatus> aStatuses)
      Creates a new instance of the EPPRgpExtInfData with a Vector of status elements.
      Parameters:
      aStatuses - Vector of EPPRgpExtStatus status elements. Only a non-null value will be used.
  • Method Details

    • getNamespace

      public String getNamespace()
      The namespace associated with this RGP inf data.
      Specified by:
      getNamespace in interface EPPCodecComponent
      Returns:
      The namespace associated with RGP component
    • 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.
    • 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 EPPRgpExtInfData compare.
      Overrides:
      equals in class Object
      Parameters:
      aObject - EPPRgpExtInfData instance to compare with
      Returns:
      true if equal false otherwise
    • clone

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

      public EPPRgpExtStatus getStatus()
      Gets the first status if there is one; null otherwise.
      Returns:
      First status of type EPPRgpExtStatus if set;null otherwise.
    • addStatus

      public void addStatus(EPPRgpExtStatus aStatus)
      Adds the status of type EPPRgpExtStatus to the Vector of statuses.
      Parameters:
      aStatus - Status to add
    • getStatuses

      public Vector<EPPRgpExtStatus> getStatuses()
      Gets the Vector of statuses of type EPPRgpExtStatus.
      Returns:
      Non-null Vector of EPPRgpExtStatus instances.
    • setStatuses

      public void setStatuses(Vector<EPPRgpExtStatus> aStatuses)
      Sets the Vector of statuses of type EPPRgpExtStatus.
      Parameters:
      aStatuses - Statuses to use. If null the parameter will be ignored.