Class EPPRegistryExceedMaxExDate

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

public class EPPRegistryExceedMaxExDate extends Object implements EPPCodecComponent
EPPRegistryExceedMaxExDdate defines the action taken by the server when executing commands that will result in an expiration date that exceeds the maximum expiration date. The required "command" attribute is used to define the command with a renewal feature, such as "renew" or "transfer". New commands can be defined that include a renewal feature, such as "sync".
See Also:
  • Field Details

  • Constructor Details

    • EPPRegistryExceedMaxExDate

      public EPPRegistryExceedMaxExDate()
      Default constructor. Must call setPolicy(Policy) and setCommand(String) before calling the encode(org.w3c.dom.Document) method.
    • EPPRegistryExceedMaxExDate

      public EPPRegistryExceedMaxExDate(EPPRegistryExceedMaxExDate.Policy aPolicy, String aCommand)
      Construct an instance of EPPRegistryExceedMaxExDdate with the required policy and command.
      Parameters:
      aPolicy - Exceed maximum expiration date policy applied
      aCommand - Command that the policy is applied to
  • Method Details

    • encode

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

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

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

      public boolean equals(Object aObject)
      implements a deep EPPRegistryExceedMaxExDate compare.
      Overrides:
      equals in class Object
      Parameters:
      aObject - EPPRegistryExceedMaxExDate instance to compare with
      Returns:
      true if this object is the same as the aObject argument; false otherwise
    • 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 Object
      Returns:
      Indented XML String if successful; ERROR otherwise.
    • getPolicy

      Gets the exceed maximum expiration date policy applied.
      Returns:
      The maximum expiration date policy applied if defined; null otherwise.
    • setPolicy

      public void setPolicy(EPPRegistryExceedMaxExDate.Policy aPolicy)
      Sets the exceed maximum expiration date policy applied.
      Parameters:
      aPolicy - The maximum expiration date policy to set
    • getCommand

      public String getCommand()
      Gets the command that the maximum expiration date policy is applied to.
      Returns:
      The command name if defined; null otherwise.
    • setCommand

      public void setCommand(String aCommand)
      Sets the command that the maximum expiration date policy is applied to.
      Parameters:
      aCommand - That command name, such as "renew" or "transfer".
    • getNamespace

      public String getNamespace()
      Returns the XML namespace associated with the EPPCodecComponent.
      Specified by:
      getNamespace in interface EPPCodecComponent
      Returns:
      XML namespace for the EPPCodecComponent.