Class EPPRegistryGracePeriod

java.lang.Object
com.verisign.epp.codec.registry.v02.EPPRegistryPeriodType
com.verisign.epp.codec.registry.v02.EPPRegistryGracePeriod
All Implemented Interfaces:
EPPCodecComponent, Serializable, Cloneable

public class EPPRegistryGracePeriod extends EPPRegistryPeriodType
Defines the grace periods by operation type. The required "command" attribute defines the operation type with the sample values of "create", "renew", "transfer", and "autoRenew". The <registry:gracePeriod> element requires the "unit" attribute with the possible values of "d" for day, "h" for hour, and "m" for minute.
See Also:
  • Field Details

    • ELM_LOCALNAME

      public static final String ELM_LOCALNAME
      XML local name for EPPRegistryGracePeriod.
      See Also:
    • ATTR_COMMAND

      public static final String ATTR_COMMAND
      XML attribute name for the command attribute.
      See Also:
    • command

      protected String command
      EPP transform command to which this period applies
  • Constructor Details

  • Method Details

    • encode

      public Element encode(Document aDocument) throws EPPEncodeException
      Encode a DOM Element tree from the attributes of the EPPRegistryGracePeriod instance.
      Specified by:
      encode in interface EPPCodecComponent
      Overrides:
      encode in class EPPRegistryPeriodType
      Parameters:
      aDocument - DOM Document that is being built. Used as an Element factory.
      Returns:
      Element Root DOM Element representing the EPPRegistryGracePeriod instance.
      Throws:
      EPPEncodeException - - Unable to encode EPPRegistryGracePeriod instance.
    • decode

      public void decode(Element aElement) throws EPPDecodeException
      Decode the EPPRegistryGracePeriod attributes from the aElement DOM Element tree.
      Specified by:
      decode in interface EPPCodecComponent
      Overrides:
      decode in class EPPRegistryPeriodType
      Parameters:
      aElement - Root DOM Element to decode EPPRegistryGracePeriod from.
      Throws:
      EPPDecodeException - Unable to decode aElement
    • equals

      public boolean equals(Object aObject)
      implements a deep EPPRegistryGracePeriod compare.
      Overrides:
      equals in class EPPRegistryPeriodType
      Parameters:
      aObject - EPPRegistryGracePeriod instance to compare with
      Returns:
      true if this object is the same as the aObject argument; false otherwise
    • getCommand

      public String getCommand()
      Get the EPP transform command to which this period applies.
      Returns:
      EPP transform command to which this period applies
    • setCommand

      public void setCommand(String command)
      Set the EPP transform command to which this period applies.
      Parameters:
      command - EPP transform command to which this period applies
    • getNamespace

      public String getNamespace()
      Returns the XML namespace associated with the EPPCodecComponent.
      Returns:
      XML namespace for the EPPCodecComponent.
    • getRootName

      protected String getRootName()
      Gets the root element local name.
      Overrides:
      getRootName in class EPPRegistryPeriodType
      Returns:
      Root element local name.