Class EPPChangeUpdateCmd

All Implemented Interfaces:
EPPCodecComponent, EPPMessage, Serializable, Cloneable

public class EPPChangeUpdateCmd extends EPPUpdateCmd
Represents an EPP <change:update> command that is used to modify an existing EPP Change Request object. The <change:update> element MAY contain the following child elements:

  • A <change:upAttrs> element that contains the Change Request attributes for modification. Use getAttributes and setAttributes to get and set the element.
  • An empty <change:clear> element. Use isClear and setClear to get and set the element.
  • An empty <change:submit> element. Use isSubmit and setSubmit to get and set the element.
  • An empty <change:withdraw> element. Use isWithdraw and setWithdraw to get and set the element.

See Also:
  • Constructor Details

    • EPPChangeUpdateCmd

      public EPPChangeUpdateCmd()
    • EPPChangeUpdateCmd

      public EPPChangeUpdateCmd(String aTransId)
    • EPPChangeUpdateCmd

      public EPPChangeUpdateCmd(String aTransId, String requestId)
  • Method Details

    • clone

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

      public boolean equals(Object o)
      Compare an instance of EPPChangeUpdateCmd with this instance
      Overrides:
      equals in class EPPUpdateCmd
      Parameters:
      o - Object to compare with.
      Returns:
      DOCUMENT ME!
    • getAttributes

      public EPPChangeUpdateAttributes getAttributes()
    • getNamespace

      public String getNamespace()
      Gets the EPP command Namespace associated with EPPChangeUpdateCmd.
      Specified by:
      getNamespace in interface EPPCodecComponent
      Specified by:
      getNamespace in interface EPPMessage
      Specified by:
      getNamespace in class EPPCommand
      Returns:
      EPPChangeMapFactory.NS
    • getKey

      public String getKey()
      Gets the key for the change object, which is the request identifier.
      Overrides:
      getKey in class EPPCommand
      Returns:
      The request identifier if set; null otherwise.
    • getRequestId

      public String getRequestId()
    • isClear

      public boolean isClear()
    • isSubmit

      public boolean isSubmit()
    • isWithdraw

      public boolean isWithdraw()
    • setAttributes

      public void setAttributes(EPPChangeUpdateAttributes attributes)
    • setClear

      public void setClear(boolean clear)
    • setRequestId

      public void setRequestId(String requestId)
    • setSubmit

      public void setSubmit(boolean submit)
    • setWithdraw

      public void setWithdraw(boolean withdraw)
    • toString

      public String toString()
      Implementation of Object.toString, which will result in an indented XML String representation of the concrete EPPCodecComponent.
      Overrides:
      toString in class EPPCommand
      Returns:
      Indented XML String if successful; ERROR otherwise.
    • doDecode

      protected void doDecode(Element aElement) throws EPPDecodeException
      Decode the EPPChangeUpdateCmd attributes from the aElement DOM Element tree.
      Specified by:
      doDecode in class EPPUpdateCmd
      Parameters:
      aElement - Root DOM Element to decode EPPChangeUpdateCmd from.
      Throws:
      EPPDecodeException - Unable to decode aElement
    • doEncode

      protected Element doEncode(Document aDocument) throws EPPEncodeException
      Encode a DOM Element tree from the attributes of the EPPChangeUpdateCmd instance.
      Specified by:
      doEncode in class EPPUpdateCmd
      Parameters:
      aDocument - DOM Document that is being built. Used as an Element factory.
      Returns:
      Root DOM Element representing the EPPChangeUpdateCmd instance.
      Throws:
      EPPEncodeException - Unable to encode EPPChangeUpdateCmd instance.