Class EPPOrgDeleteCmd

All Implemented Interfaces:
EPPCodecComponent, EPPMessage, Serializable, Cloneable

public class EPPOrgDeleteCmd extends EPPDeleteCmd
Command used to delete a org object.
See Also:
  • Field Details

  • Constructor Details

    • EPPOrgDeleteCmd

      public EPPOrgDeleteCmd()
      EPPOrgDeleteCmd default constructor.
    • EPPOrgDeleteCmd

      public EPPOrgDeleteCmd(String aTransId)
      EPPOrgDeleteCmd constructor that only takes the client transaction identifier
      Parameters:
      aTransId - Transaction Id associated with command.
    • EPPOrgDeleteCmd

      public EPPOrgDeleteCmd(String aTransId, String aOrgId)
      EPPOrgDeleteCmd constructor that takes the transaction identifier and the org identifier.
      Parameters:
      aTransId - Transaction Id associated with command. Set to null if a client transaction identifier is not desired.
      aOrgId - Org identifier
  • Method Details

    • getNamespace

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

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

      public String getOrgId()
      Gets the org identifier.
      Returns:
      The org identifier if defined;null otherwise.
    • setOrgId

      public void setOrgId(String aOrgId)
      Sets the org identifier.
      Parameters:
      aOrgId - The org identifier
    • doEncode

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

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

      public boolean equals(Object aObject)
      Compare an instance of EPPOrgDeleteCmd with this instance.
      Overrides:
      equals in class EPPDeleteCmd
      Parameters:
      aObject - Object to compare with.
      Returns:
      true if this object is the same as the aObject argument; false otherwise.
    • clone

      public Object clone() throws CloneNotSupportedException
      Clone EPPOrgDeleteCmd.
      Specified by:
      clone in interface EPPCodecComponent
      Overrides:
      clone in class EPPCommand
      Returns:
      Deep copy clone of EPPOrgDeleteCmd
      Throws:
      CloneNotSupportedException - standard Object.clone exception
    • 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.