Class EPPLaunchPolicyZoneContainer

java.lang.Object
com.verisign.epp.codec.launchpolicy.v01.EPPLaunchPolicyZoneContainer
All Implemented Interfaces:
EPPCodecComponent, Serializable, Cloneable
Direct Known Subclasses:
EPPLaunchPolicyCreate, EPPLaunchPolicyInfData, EPPLaunchPolicyUpdate

public abstract class EPPLaunchPolicyZoneContainer extends Object implements EPPCodecComponent
Abstract base class for the command and response extensions that contains a zone.
See Also:
  • Constructor Details

    • EPPLaunchPolicyZoneContainer

      public EPPLaunchPolicyZoneContainer()
      Default constructor for EPPLaunchPolicyZoneContainer.
    • EPPLaunchPolicyZoneContainer

      public EPPLaunchPolicyZoneContainer(EPPLaunchPolicyZone aZone)
      Constructor for EPPLaunchPolicyZoneContainer that takes the contained zone.
      Parameters:
      aZone - The zone to contain
  • Method Details

    • getLocalName

      protected abstract String getLocalName()
      Abstract method that the sub-class must define to return the local name for the root element.
      Returns:
      Local name of the root element of the extension.
    • getLogger

      protected abstract org.slf4j.Logger getLogger()
      Gets the Logger to use for logging.
      Returns:
      Logger instance determined by the derived class.
    • getZone

      public EPPLaunchPolicyZone getZone()
      Gets the contained zone of the extension.
      Returns:
      Instance of contained EPPLaunchPolicyZone
    • setZone

      public void setZone(EPPLaunchPolicyZone aZone)
      Sets the contained zone of the extension.
      Parameters:
      aZone - Instance of EPPLaunchPolicyZone
    • encode

      public Element encode(Document aDocument) throws EPPEncodeException
      Encode instance into a DOM element tree. A DOM Document is passed as an argument and functions as a factory for DOM objects. The root element associated with the instance is created and each instance attribute is appended as a child node.
      Specified by:
      encode in interface EPPCodecComponent
      Parameters:
      aDocument - DOM Document, which acts is an Element factory
      Returns:
      Element Root element associated with the object
      Throws:
      EPPEncodeException - Error encoding EPPLaunchPolicyZoneContainer
    • decode

      public void decode(Element aElement) throws EPPDecodeException
      Decode a DOM element tree to initialize the instance attributes. The aElement argument represents the root DOM element and is used to traverse the DOM nodes for instance attribute values.
      Specified by:
      decode in interface EPPCodecComponent
      Parameters:
      aElement - Element to decode
      Throws:
      EPPDecodeException - Error decoding Element
    • clone

      public Object clone() throws CloneNotSupportedException
      clone an EPPCodecComponent.
      Specified by:
      clone in interface EPPCodecComponent
      Overrides:
      clone in class Object
      Returns:
      clone of concrete EPPLaunchPolicyZoneContainer
      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 Object
      Returns:
      Indented XML String if successful; ERROR otherwise.
    • equals

      public boolean equals(Object aObject)
      Compare an instance of EPPLaunchPolicyZoneContainer with this instance.
      Overrides:
      equals in class Object
      Parameters:
      aObject - Object to compare with.
      Returns:
      true if equal; false otherwise.
    • getNamespace

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