Class EPPLaunchPolicyPhase

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

public class EPPLaunchPolicyPhase extends Object implements EPPCodecComponent
EPPLaunchPolicyPhase represents the policies for a zone phase.
See Also:
  • Field Details

  • Constructor Details

    • EPPLaunchPolicyPhase

      public EPPLaunchPolicyPhase()
      EPPLaunchPolicyPhase default constructor.
    • EPPLaunchPolicyPhase

      public EPPLaunchPolicyPhase(EPPLaunchPolicyPhase.Phase aPhase, Date aStartDate)
      EPPLaunchPolicyPhase constructor that takes the required set of attributes.
      Parameters:
      aPhase - The launch phase
      aStartDate - Start date and time for the phase.
    • EPPLaunchPolicyPhase

      public EPPLaunchPolicyPhase(EPPLaunchPolicyPhase.Phase aPhase, String aName, EPPLaunchPolicyPhase.Mode aMode, Date aStartDate, Date aEndDate, Boolean aValidatePhase, List<String> aValidatorIds, List<EPPLaunchPolicyPhaseStatus> aStatuses, Boolean aPendingCreate, EPPLaunchPolicyPollPolicy aPollPolicy, List<EPPLaunchPolicyPhase.MarkValidation> aMarkValidations, Integer aMaxMarks, List<String> aMarksSupported, List<String> aSignedMarksSupported, List<String> aEncodedSignedMarksSupported, List<EPPLaunchPolicyPhase.CheckForm> aCheckForms, List<EPPLaunchPolicyPhase.CreateForm> aCreateForms, Boolean aCreateValidateType)
      EPPLaunchPolicyPhase constructor that takes attributes.
      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.
      aMode - Phase operation mode. Setting to null will set the mode ot the default of EPPLaunchPolicyPhase.Mode.fcfs.
      aStartDate - Start date and time for the phase.
      aEndDate - OPTIONAL end date and time for the phase. Set to null if undefined.
      aValidatePhase - OPTIONAL boolean value that indicates whether the server validates the phase provided by the client in the <launch:phase> element. Set to null if undefined.
      aValidatorIds - List of validator identifiers.
      aStatuses - List of supported phase statuses
      aPendingCreate - OPTIONAL boolean value that indicates that the server will place the Launch Application or the Launch Registration in the "pendingCreate" status as specified in [RFC5731]. Set to null if undefined.
      aPollPolicy - An OPTIONAL element that defines the poll messaging policy for the phase. Set to null if undefined.
      aMarkValidations - Supported mark validation models. Set to null if undefined.
      aMaxMarks - OPTIONAL maximum number of marks per domain name for the phase. Set to {code null} if undefined.
      aMarksSupported - Supported mark XML namespaces. Set to null if undefined.
      aSignedMarksSupported - Supported signed mark XML namespaces. Set to null if undefined.
      aEncodedSignedMarksSupported - Supported encoded signed mark XML namespaces. Set to null if undefined.
      aCheckForms - Supported check forms. Set to null if undefined.
      aCreateForms - Supported create forms. Set to null if undefined.
      aCreateValidateType - OPTIONAL boolean value that indicates whether the server validates the OPTIONAL <launch:create> "type" attribute. Set to null if undefined.
  • Method Details

    • clone

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

      public void validateState() throws EPPCodecException
      Validate the state of the EPPLaunchPolicyPhase instance. A valid state means that all of the required attributes have been set. If validateState returns without an exception, the state is valid. If the state is not valid, the EPPCodecException will contain a description of the error. throws EPPCodecException State error. This will contain the name of the attribute that is not valid.
      Throws:
      EPPCodecException - On invalid state
    • encode

      public Element encode(Document aDocument) throws EPPEncodeException
      Encode a DOM Element tree from the attributes of the EPPLaunchPolicyPhase 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 EPPLaunchPolicyPhase instance.
      Throws:
      EPPEncodeException - - Unable to encode EPPLaunchPolicyPhase instance.
    • decode

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

      public boolean equals(Object aObject)
      implements a deep EPPLaunchPolicyPhase compare.
      Overrides:
      equals in class Object
      Parameters:
      aObject - EPPLaunchPolicyPhase instance to compare with
      Returns:
      true if equal; 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.
    • getNamespace

      public String getNamespace()
      Returns the XML namespace associated with the EPPCodecComponent.
      Specified by:
      getNamespace in interface EPPCodecComponent
      Returns:
      XML namespace for the EPPCodecComponent.
    • 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
    • getMode

      public EPPLaunchPolicyPhase.Mode getMode()
      Gets the mode value.
      Returns:
      EPPLaunchPolicyPhase.Mode enumerated value, with the default value of EPPLaunchPolicyPhase.Mode.fcfs.
    • setMode

      public void setMode(EPPLaunchPolicyPhase.Mode aMode)
      Sets the mode value.
      Parameters:
      aMode - Sets the phase value. If null the default value of EPPLaunchPolicyPhase.Mode.fcfs.
    • hasStartDate

      public boolean hasStartDate()
      Is the start date defined?
      Returns:
      true if the start date is defined; false otherwise.
    • getStartDate

      public Date getStartDate()
      Get the start date and time for the phase.
      Returns:
      Start date and time for the phase.
    • setCreateDate

      public void setCreateDate(Date aStartDate)
      Set start date and time for the phase.
      Parameters:
      aStartDate - Start date and time for the phase.
    • hasEndDate

      public boolean hasEndDate()
      Is the end date defined?
      Returns:
      true if the start date is defined; false otherwise.
    • getEndDate

      public Date getEndDate()
      Get the OPTIONAL end date and time for the phase.
      Returns:
      End date and time for the phase if defined; null otherwise.
    • setEndDate

      public void setEndDate(Date aEndDate)
      Set end date and time for the phase.
      Parameters:
      aEndDate - End date and time for the phase. Set to null if undefined.
    • hasValidatePhase

      public boolean hasValidatePhase()
      Is the validate phase flag defined?
      Returns:
      true if the validate phase flag is defined; false otherwise.
    • getValidatePhase

      public Boolean getValidatePhase()
      Gets the OPTIONAL boolean value that indicates whether the server validates the phase provided by the client in the <launch:phase> element.
      Returns:
      true or false indicating whether the server validates the phase provided by the client in the <launch:phase> element if defined; null otherwise.
    • setValidatePhase

      public void setValidatePhase(Boolean aValidatePhase)
      Sets the OPTIONAL boolean flag that indicates whether the server validates the phase provided by the client in the <launch:phase> element.
      Parameters:
      aValidatePhase - true or false indicating whether the server validates the phase provided by the client in the <launch:phase> element. Set to null if undefined.
    • hasValidatorIds

      public boolean hasValidatorIds()
      Is the validator identifier list defined?
      Returns:
      true if the validator identifier list is defined; false otherwise.
    • getValidatorIds

      public List<String> getValidatorIds()
      Gets the validator identifier list.
      Returns:
      Validator identifiers
    • setValidatorIds

      public void setValidatorIds(List<String> aValidatorIds)
      Sets the validator identifier list.
      Parameters:
      aValidatorIds - List of validator identifiers.
    • addValidatorId

      public void addValidatorId(String aValidatorId)
      Add a validator identifier to the list of supported Validator Identifier values for the phase.
      Parameters:
      aValidatorId - Validator identifier to the list of supported Validator Identifier values for the phase.
    • hasStatuses

      public boolean hasStatuses()
      Is the status list defined?
      Returns:
      true if the status list is defined; false otherwise.
    • getStatuses

      public List<EPPLaunchPolicyPhaseStatus> getStatuses()
      Gets the status list. which defines the supported launch status values.
      Returns:
      Supported launch statuses
    • setStatuses

      public void setStatuses(List<EPPLaunchPolicyPhaseStatus> aStatuses)
      Sets the status list. which defines the supported launch status values.
      Parameters:
      aStatuses - List of supported launch statuses
    • addStatus

      public void addStatus(EPPLaunchPolicyPhaseStatus aStatus)
      Adds a status to the status list. which defines the supported launch status values.
      Parameters:
      aStatus - Supported status to add to the supported launch status list.
    • hasPendingCreate

      public boolean hasPendingCreate()
      Is the pending create flag defined?
      Returns:
      true if the pending create flag is defined; false otherwise.
    • getPendingCreate

      public Boolean getPendingCreate()
      Gets the OPTIONAL boolean value that indicates that the server will place the Launch Application or the Launch Registration in the "pendingCreate" status as specified in [RFC5731].
      Returns:
      true or false indicating that the server will place the Launch Application or the Launch Registration in the "pendingCreate" status as specified in [RFC5731] if defined; null otherwise.
    • setPendingCreate

      public void setPendingCreate(Boolean aPendingCreate)
      Sets the OPTIONAL boolean flag that indicates that the server will place the Launch Application or the Launch Registration in the "pendingCreate" status as specified in [RFC5731].
      Parameters:
      aPendingCreate - true or false indicating that the server will place the Launch Application or the Launch Registration in the "pendingCreate" status as specified in [RFC5731]. Set to null if undefined.
    • hasPollPolicy

      public boolean hasPollPolicy()
      Is the poll policy defined?
      Returns:
      true if the poll policy is defined; false otherwise.
    • getPollPolicy

      public EPPLaunchPolicyPollPolicy getPollPolicy()
      Gets the poll policy value.
      Returns:
      EPPLaunchPolicyPollPolicy instance if defined; null otherwise.
    • setPollPolicy

      public void setPollPolicy(EPPLaunchPolicyPollPolicy aPollPolicy)
      Sets the poll policy value.
      Parameters:
      aPollPolicy - Sets the poll policy value.
    • hasMarkValidations

      public boolean hasMarkValidations()
      Is the mark validation list defined?
      Returns:
      true if the mark validation is defined; false otherwise.
    • getMarkValidations

      public List<EPPLaunchPolicyPhase.MarkValidation> getMarkValidations()
      Gets the mark validation list. which defines the supported mark validation models in the phase.
      Returns:
      Supported mark validation models statuses
    • setMarkValidations

      public void setMarkValidations(List<EPPLaunchPolicyPhase.MarkValidation> aMarkValidations)
      Sets the mark validation list. which defines the supported mark validation models in the phase.
      Parameters:
      aMarkValidations - List of supported mark validation models
    • addMarkValidation

      public void addMarkValidation(EPPLaunchPolicyPhase.MarkValidation aMarkValidation)
      Adds a mark validation model to the mark validation list. which defines the supported mark validation models in the phase.
      Parameters:
      aMarkValidation - Supported mark validation model to add to the mark validation list.
    • hasMaxMarks

      public boolean hasMaxMarks()
      Is the max marks defined?
      Returns:
      true if the max marks is defined; false otherwise.
    • getMaxMarks

      public Integer getMaxMarks()
      Gets the OPTIONAL maximum number of marks per domain name for the phase.
      Returns:
      Maximum number of marks per domain name for the phase if defined; null otherwise.
    • setMaxMarks

      public void setMaxMarks(Integer aMaxMarks)
      Sets the OPTIONAL maximum number of marks per domain name for the phase.
      Parameters:
      aMaxMarks - Maximum number of marks per domain name for the phase. Set to null if undefined.
    • hasMarksSupported

      public boolean hasMarksSupported()
      Is the marks supported list defined?
      Returns:
      true if the marks supported list is defined; false otherwise.
    • getMarksSupported

      public List<String> getMarksSupported()
      Gets the marks supported list, which is the list of XML namespaces of the marks that are supported in the phase.
      Returns:
      XML namespaces of the marks supported by the phase.
    • setMarksSupported

      public void setMarksSupported(List<String> aMarksSupported)
      Sets the marks supported list, which is the list of XML namespaces of the marks that are supported in the phase.
      Parameters:
      aMarksSupported - List of supported mark XML namespaces
    • addMarkSupported

      public void addMarkSupported(String aMarkSupported)
      Add a mark XML namespace to the list of supported mark XML namespaces.
      Parameters:
      aMarkSupported - XML namespace of the mark that is supported in the phase.
    • hasSignedMarksSupported

      public boolean hasSignedMarksSupported()
      Is the signed marks supported list defined?
      Returns:
      true if the signed marks supported list is defined; false otherwise.
    • getSignedMarksSupported

      public List<String> getSignedMarksSupported()
      Gets the signed marks supported list, which is the list of XML namespaces of the signed marks that are supported in the phase.
      Returns:
      XML namespaces of the signed marks supported by the phase.
    • setSignedMarksSupported

      public void setSignedMarksSupported(List<String> aSignedMarksSupported)
      Sets the signed marks supported list, which is the list of XML namespaces of the signed marks that are supported in the phase.
      Parameters:
      aSignedMarksSupported - List of supported signed mark XML namespaces
    • addSignedMarkSupported

      public void addSignedMarkSupported(String aSignedMarkSupported)
      Add a signed mark XML namespace to the list of supported signed mark XML namespaces.
      Parameters:
      aSignedMarkSupported - XML namespace of the signed mark that is supported in the phase.
    • hasEncodedSignedMarksSupported

      public boolean hasEncodedSignedMarksSupported()
      Is the encoded signed marks supported list defined?
      Returns:
      true if the encoded signed marks supported list is defined; false otherwise.
    • getEncodedSignedMarksSupported

      public List<String> getEncodedSignedMarksSupported()
      Gets the encoded signed marks supported list, which is the list of XML namespaces of the encoded signed marks that are supported in the phase.
      Returns:
      XML namespaces of the encoded signed marks supported by the phase.
    • setEncodedSignedMarksSupported

      public void setEncodedSignedMarksSupported(List<String> aEncodedSignedMarksSupported)
      Sets the encoded signed marks supported list, which is the list of XML namespaces of the encoded signed marks that are supported in the phase.
      Parameters:
      aEncodedSignedMarksSupported - List of supported encoded signed mark XML namespaces
    • addEncodedSignedMarkSupported

      public void addEncodedSignedMarkSupported(String aEncodedSignedMarkSupported)
      Add an encoded signed mark XML namespace to the list of supported encoded signed mark XML namespaces.
      Parameters:
      aEncodedSignedMarkSupported - XML namespace of the signed mark that is supported in the phase.
    • hasCheckForms

      public boolean hasCheckForms()
      Is the check form list defined?
      Returns:
      true if the check form list is defined; false otherwise.
    • getCheckForms

      public List<EPPLaunchPolicyPhase.CheckForm> getCheckForms()
      Gets the check form list. which defines the supported check forms in the phase.
      Returns:
      Supported check forms
    • setCheckForms

      public void setCheckForms(List<EPPLaunchPolicyPhase.CheckForm> aCheckForms)
      Sets the check form list. which defines the supported check forms in the phase.
      Parameters:
      aCheckForms - List of supported check forms
    • addCheckForm

      public void addCheckForm(EPPLaunchPolicyPhase.CheckForm aCheckForm)
      Adds a check form to the check form list. which defines the supported check forms in the phase.
      Parameters:
      aCheckForm - Supported check form to add to the check form list.
    • hasInfoPhases

      public boolean hasInfoPhases()
      Is the info phase list defined?
      Returns:
      true if the info phase list is defined; false otherwise.
    • getInfoPhases

      public List<EPPLaunchPolicyInfoPhase> getInfoPhases()
      Gets the info phase list. which defines the supported info phase values.
      Returns:
      Supported info launch phases
    • setInfoPhases

      public void setInfoPhases(List<EPPLaunchPolicyInfoPhase> aInfoPhases)
      Sets the info phase list. which defines the supported info phase values.
      Parameters:
      aInfoPhases - List of supported info phase values.
    • addInfoPhase

      public void addInfoPhase(EPPLaunchPolicyInfoPhase aInfoPhase)
      Adds an info phase to the info phase list, which defines the supported info phase values.
      Parameters:
      aInfoPhase - Supported info phase to add to the supported info phase list.
    • hasCreateForms

      public boolean hasCreateForms()
      Is the create form list defined?
      Returns:
      true if the create form list is defined; false otherwise.
    • getCreateForms

      public List<EPPLaunchPolicyPhase.CreateForm> getCreateForms()
      Gets the create form list. which defines the supported create forms in the phase.
      Returns:
      Supported create forms
    • setCreateForms

      public void setCreateForms(List<EPPLaunchPolicyPhase.CreateForm> aCreateForms)
      Sets the create form list. which defines the supported create forms in the phase.
      Parameters:
      aCreateForms - List of supported create forms
    • addCreateForm

      public void addCreateForm(EPPLaunchPolicyPhase.CreateForm aCreateForm)
      Adds a create form to the create form list. which defines the supported create forms in the phase.
      Parameters:
      aCreateForm - Supported create form to add to the create form list.
    • hasCreateValidateType

      public boolean hasCreateValidateType()
      Is the create validate type flag defined?
      Returns:
      true if the create validate type flag is defined; false otherwise.
    • getCreateValidateType

      public Boolean getCreateValidateType()
      Gets the OPTIONAL boolean value that indicates whether the server validates the OPTIONAL <launch:create> "type" attribute.
      Returns:
      true or false indicating whether the server validates the OPTIONAL <launch:create> "type" attribute. if defined; null otherwise.
    • setCreateValidateType

      public void setCreateValidateType(Boolean aCreateValidateType)
      Sets the OPTIONAL boolean value that indicates whether the server validates the OPTIONAL <launch:create> "type" attribute.
      Parameters:
      aCreateValidateType - true or false indicating whether the server validates the OPTIONAL <launch:create> "type" attribute. Set to null if undefined.