Class EPPLaunchPolicyInfoPhase

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

public class EPPLaunchPolicyInfoPhase extends Object implements EPPCodecComponent
EPPLaunchPolicyInfoPhase defines a supported <launch:phase> value that can be passed in the phase.
See Also:
  • Field Details

  • Constructor Details

    • EPPLaunchPolicyInfoPhase

      public EPPLaunchPolicyInfoPhase()
      Default constructor for EPPLaunchPolicyInfoPhase.
    • EPPLaunchPolicyInfoPhase

      public EPPLaunchPolicyInfoPhase(EPPLaunchPolicyPhase.Phase aPhase)
      Constructor for EPPLaunchPolicyInfoPhase that takes the required phase attribute.
      Parameters:
      aPhase - The launch phase
    • EPPLaunchPolicyInfoPhase

      public EPPLaunchPolicyInfoPhase(EPPLaunchPolicyPhase.Phase aPhase, String aName)
      Constructor for EPPLaunchPolicyInfoPhase that takes the required phase attribute and the optional name attribute.
      Parameters:
      aPhase - The launch phase
      aName - The sub-phase name or the custom name if aPhase is EPPLaunchPolicyPhase.Phase.custom. Set to null if undefined.
  • Method Details

    • 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 EPPLaunchPolicyInfoPhase
    • 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 EPPOrgExt
      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 EPPOrgExt with this instance.
      Overrides:
      equals in class Object
      Parameters:
      aObject - Object to compare with.
      Returns:
      true if equal; false otherwise.
    • hasPhase

      public boolean hasPhase()
      Is the phase defined?
      Returns:
      true if the phase is defined; false otherwise.
    • getPhase

      public EPPLaunchPolicyPhase.Phase getPhase()
      Gets the phase value.
      Returns:
      EPPLaunchPolicyPhase.Phase enumerated value if set; null otherwise.
    • setPhase

      public void setPhase(EPPLaunchPolicyPhase.Phase aPhase)
      Sets the phase value.
      Parameters:
      aPhase - Sets the phase value.
    • hasName

      public boolean hasName()
      Is the name defined?
      Returns:
      true if the name is defined; false otherwise.
    • getName

      public String getName()
      Gets the OPTIONAL phase name or sub-phase name.
      Returns:
      The phase name or sub-phase name if defined; null otherwise.
    • setName

      public void setName(String aName)
      Sets the OPTIONAL phase name or sub-phase name.
      Parameters:
      aName - Phase name
    • getNamespace

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