Class EPPLaunchPolicyZone

    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String ELM_LOCALNAME
      XML local name for EPPLaunchPolicyZone.
      static java.lang.String ELM_NAME
      XML root tag for EPPLaunchPolicyZone.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addPhase​(EPPLaunchPolicyPhase aPhase)
      Adds a phase to the list of phases.
      java.lang.Object clone()
      Clone an EPPCodecComponent instance.
      void decode​(org.w3c.dom.Element aElement)
      Decode a DOM element tree to initialize the instance attributes.
      org.w3c.dom.Element encode​(org.w3c.dom.Document aDocument)
      Encode instance into a DOM element tree.
      boolean equals​(java.lang.Object aObject)
      Compare an instance of EPPLaunchPolicyZone with this instance.
      java.lang.String getNamespace()
      Returns the XML namespace associated with the EPPCodecComponent.
      java.util.List<EPPLaunchPolicyPhase> getPhases()
      Gets the list of phases if defined.
      boolean hasPhases()
      Are the phases defined?
      void setPhases​(java.util.List<EPPLaunchPolicyPhase> aPhases)
      Sets the list of phases.
      java.lang.String toString()
      Implementation of Object.toString, which will result in an indented XML String representation of the concrete EPPCodecComponent.
      • Methods inherited from class java.lang.Object

        finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • ELM_LOCALNAME

        public static final java.lang.String ELM_LOCALNAME
        XML local name for EPPLaunchPolicyZone.
        See Also:
        Constant Field Values
      • ELM_NAME

        public static final java.lang.String ELM_NAME
        XML root tag for EPPLaunchPolicyZone.
        See Also:
        Constant Field Values
    • Constructor Detail

      • 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​(java.util.List<EPPLaunchPolicyPhase> aPhases)
        Constructor for EPPLaunchPolicyZone that takes a list of phases.
        Parameters:
        aPhases - List of phases
    • Method Detail

      • hasPhases

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

        public java.util.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​(java.util.List<EPPLaunchPolicyPhase> aPhases)
        Sets the list of phases.
        Parameters:
        aPhases - The phases to set.
      • encode

        public org.w3c.dom.Element encode​(org.w3c.dom.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​(org.w3c.dom.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 java.lang.Object clone()
                               throws java.lang.CloneNotSupportedException
        Clone an EPPCodecComponent instance.
        Specified by:
        clone in interface EPPCodecComponent
        Overrides:
        clone in class java.lang.Object
        Returns:
        clone of concrete EPPLaunchPolicyZone
        Throws:
        java.lang.CloneNotSupportedException - standard Object.clone exception
      • toString

        public java.lang.String toString()
        Implementation of Object.toString, which will result in an indented XML String representation of the concrete EPPCodecComponent.
        Overrides:
        toString in class java.lang.Object
        Returns:
        Indented XML String if successful; ERROR otherwise.
      • equals

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

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