Class EPPLaunchPolicyZone

java.lang.Object
com.verisign.epp.codec.launchpolicy.v01.EPPLaunchPolicyZone
All Implemented Interfaces:
EPPCodecComponent, EPPRegistryZoneInterface, Serializable, Cloneable

public class EPPLaunchPolicyZone extends Object implements EPPCodecComponent, EPPRegistryZoneInterface
EPPLaunchPolicyZone contains all of the policy information associated with the zone.
See Also:
  • Field Details

  • Constructor Details

    • EPPLaunchPolicyZone

      public EPPLaunchPolicyZone()
      Default constructor for EPPLaunchPolicyZone.
    • EPPLaunchPolicyZone

      public EPPLaunchPolicyZone(EPPLaunchPolicyPhase aPhase)
      Constructor for EPPLaunchPolicyZone that takes a single phase.
      Parameters:
      aPhase - Zone phase
    • EPPLaunchPolicyZone

      public EPPLaunchPolicyZone(List<EPPLaunchPolicyPhase> aPhases)
      Constructor for EPPLaunchPolicyZone that takes a list of phases.
      Parameters:
      aPhases - List of phases
  • Method Details

    • hasPhases

      public boolean hasPhases()
      Are the phases defined?
      Returns:
      true if the phases are defined; false otherwise.
    • getPhases

      public List<EPPLaunchPolicyPhase> getPhases()
      Gets the list of phases if defined.
      Returns:
      List of phases if defined; empty list otherwise.
    • addPhase

      public void addPhase(EPPLaunchPolicyPhase aPhase)
      Adds a phase to the list of phases.
      Parameters:
      aPhase - The phase to add.
    • setPhases

      public void setPhases(List<EPPLaunchPolicyPhase> aPhases)
      Sets the list of phases.
      Parameters:
      aPhases - The phases to set.
    • 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 EPPLaunchPolicyZone
    • 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 instance.
      Specified by:
      clone in interface EPPCodecComponent
      Overrides:
      clone in class Object
      Returns:
      clone of concrete EPPLaunchPolicyZone
      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 EPPLaunchPolicyZone 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.