Class EPPLaunchPolicyPhase
java.lang.Object
com.verisign.epp.codec.launchpolicy.v01.EPPLaunchPolicyPhase
- All Implemented Interfaces:
EPPCodecComponent,Serializable,Cloneable
EPPLaunchPolicyPhase represents the policies for a zone phase.- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumPossible check forms supported by the phase.static enumPossible create forms supported by the phase.static enumPossible mark validation models supported by the phase.static enumModedefines how the phase operates, which include the following possible values:
fcfs- In this mode, each domain name is immediately created and there is no use of an application identifier.pendingRegistration- In this mode, the domain name is created with the "pendingCreate" status with no use of an application identifier.static enumPhasedefines the type of phase, which include the following possible values:
preDelegation- Phase when pre-delegation testing is done. -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionEPPLaunchPolicyPhasedefault constructor.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) EPPLaunchPolicyPhaseconstructor that takes attributes.EPPLaunchPolicyPhase(EPPLaunchPolicyPhase.Phase aPhase, Date aStartDate) EPPLaunchPolicyPhaseconstructor that takes the required set of attributes. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddCheckForm(EPPLaunchPolicyPhase.CheckForm aCheckForm) Adds a check form to the check form list.voidaddCreateForm(EPPLaunchPolicyPhase.CreateForm aCreateForm) Adds a create form to the create form list.voidaddEncodedSignedMarkSupported(String aEncodedSignedMarkSupported) Add an encoded signed mark XML namespace to the list of supported encoded signed mark XML namespaces.voidaddInfoPhase(EPPLaunchPolicyInfoPhase aInfoPhase) Adds an info phase to the info phase list, which defines the supported info phase values.voidaddMarkSupported(String aMarkSupported) Add a mark XML namespace to the list of supported mark XML namespaces.voidaddMarkValidation(EPPLaunchPolicyPhase.MarkValidation aMarkValidation) Adds a mark validation model to the mark validation list.voidaddSignedMarkSupported(String aSignedMarkSupported) Add a signed mark XML namespace to the list of supported signed mark XML namespaces.voidaddStatus(EPPLaunchPolicyPhaseStatus aStatus) Adds a status to the status list.voidaddValidatorId(String aValidatorId) Add a validator identifier to the list of supported Validator Identifier values for the phase.clone()CloneEPPLaunchPolicyPhaseinstance.voidDecode theEPPLaunchPolicyPhaseelement aElement DOM Element tree.Encode a DOM Element tree from the attributes of theEPPLaunchPolicyPhaseinstance.booleanimplements a deepEPPLaunchPolicyPhasecompare.Gets the check form list.Gets the create form list.Gets the OPTIONAL boolean value that indicates whether the server validates the OPTIONAL <launch:create> "type" attribute.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.Get the OPTIONAL end date and time for the phase.Gets the info phase list.Gets the marks supported list, which is the list of XML namespaces of the marks that are supported in the phase.Gets the mark validation list.Gets the OPTIONAL maximum number of marks per domain name for the phase.getMode()Gets the mode value.getName()Gets the OPTIONAL phase name or sub-phase name.Returns the XML namespace associated with theEPPCodecComponent.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].getPhase()Gets the phase value.Gets the poll policy value.Gets the signed marks supported list, which is the list of XML namespaces of the signed marks that are supported in the phase.Get the start date and time for the phase.Gets the status list.Gets the OPTIONAL boolean value that indicates whether the server validates the phase provided by the client in the <launch:phase> element.Gets the validator identifier list.booleanIs the check form list defined?booleanIs the create form list defined?booleanIs the create validate type flag defined?booleanIs the encoded signed marks supported list defined?booleanIs the end date defined?booleanIs the info phase list defined?booleanIs the marks supported list defined?booleanIs the mark validation list defined?booleanIs the max marks defined?booleanhasName()Is the name defined?booleanIs the pending create flag defined?booleanhasPhase()Is the phase defined?booleanIs the poll policy defined?booleanIs the signed marks supported list defined?booleanIs the start date defined?booleanIs the status list defined?booleanIs the validate phase flag defined?booleanIs the validator identifier list defined?voidsetCheckForms(List<EPPLaunchPolicyPhase.CheckForm> aCheckForms) Sets the check form list.voidsetCreateDate(Date aStartDate) Set start date and time for the phase.voidsetCreateForms(List<EPPLaunchPolicyPhase.CreateForm> aCreateForms) Sets the create form list.voidsetCreateValidateType(Boolean aCreateValidateType) Sets the OPTIONAL boolean value that indicates whether the server validates the OPTIONAL <launch:create> "type" attribute.voidsetEncodedSignedMarksSupported(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.voidsetEndDate(Date aEndDate) Set end date and time for the phase.voidsetInfoPhases(List<EPPLaunchPolicyInfoPhase> aInfoPhases) Sets the info phase list.voidsetMarksSupported(List<String> aMarksSupported) Sets the marks supported list, which is the list of XML namespaces of the marks that are supported in the phase.voidsetMarkValidations(List<EPPLaunchPolicyPhase.MarkValidation> aMarkValidations) Sets the mark validation list.voidsetMaxMarks(Integer aMaxMarks) Sets the OPTIONAL maximum number of marks per domain name for the phase.voidsetMode(EPPLaunchPolicyPhase.Mode aMode) Sets the mode value.voidSets the OPTIONAL phase name or sub-phase name.voidsetPendingCreate(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].voidsetPhase(EPPLaunchPolicyPhase.Phase aPhase) Sets the phase value.voidsetPollPolicy(EPPLaunchPolicyPollPolicy aPollPolicy) Sets the poll policy value.voidsetSignedMarksSupported(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.voidsetStatuses(List<EPPLaunchPolicyPhaseStatus> aStatuses) Sets the status list.voidsetValidatePhase(Boolean aValidatePhase) Sets the OPTIONAL boolean flag that indicates whether the server validates the phase provided by the client in the <launch:phase> element.voidsetValidatorIds(List<String> aValidatorIds) Sets the validator identifier list.toString()Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.voidValidate the state of theEPPLaunchPolicyPhaseinstance.
-
Field Details
-
ELM_LOCALNAME
Constant for the phase local name- See Also:
-
ELM_NAME
Constant for the phase qualified name (prefix and local name)- See Also:
-
-
Constructor Details
-
EPPLaunchPolicyPhase
public EPPLaunchPolicyPhase()EPPLaunchPolicyPhasedefault constructor. -
EPPLaunchPolicyPhase
EPPLaunchPolicyPhaseconstructor that takes the required set of attributes.- Parameters:
aPhase- The launch phaseaStartDate- 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) EPPLaunchPolicyPhaseconstructor that takes attributes.- Parameters:
aPhase- The launch phaseaName- The sub-phase name or the custom name ifaPhaseisEPPLaunchPolicyPhase.Phase.custom. Set tonullif undefined.aMode- Phase operation mode. Setting tonullwill set the mode ot the default ofEPPLaunchPolicyPhase.Mode.fcfs.aStartDate- Start date and time for the phase.aEndDate- OPTIONAL end date and time for the phase. Set tonullif undefined.aValidatePhase- OPTIONAL boolean value that indicates whether the server validates the phase provided by the client in the <launch:phase> element. Set tonullif undefined.aValidatorIds- List of validator identifiers.aStatuses- List of supported phase statusesaPendingCreate- 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 tonullif undefined.aPollPolicy- An OPTIONAL element that defines the poll messaging policy for the phase. Set tonullif undefined.aMarkValidations- Supported mark validation models. Set tonullif 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 tonullif undefined.aSignedMarksSupported- Supported signed mark XML namespaces. Set tonullif undefined.aEncodedSignedMarksSupported- Supported encoded signed mark XML namespaces. Set tonullif undefined.aCheckForms- Supported check forms. Set tonullif undefined.aCreateForms- Supported create forms. Set tonullif undefined.aCreateValidateType- OPTIONAL boolean value that indicates whether the server validates the OPTIONAL <launch:create> "type" attribute. Set tonullif undefined.
-
-
Method Details
-
clone
CloneEPPLaunchPolicyPhaseinstance.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classObject- Returns:
- clone of
EPPLaunchPolicyPhase - Throws:
CloneNotSupportedException- standard Object.clone exception
-
validateState
Validate the state of theEPPLaunchPolicyPhaseinstance. 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, theEPPCodecExceptionwill 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
Encode a DOM Element tree from the attributes of theEPPLaunchPolicyPhaseinstance.- Specified by:
encodein interfaceEPPCodecComponent- Parameters:
aDocument- - DOM Document that is being built. Used as an Element factory.- Returns:
- Element - Root DOM Element representing the
EPPLaunchPolicyPhaseinstance. - Throws:
EPPEncodeException- - Unable to encodeEPPLaunchPolicyPhaseinstance.
-
decode
Decode theEPPLaunchPolicyPhaseelement aElement DOM Element tree.- Specified by:
decodein interfaceEPPCodecComponent- Parameters:
aElement- - Root DOM Element to decodeEPPLaunchPolicyPhasefrom.- Throws:
EPPDecodeException- Unable to decode aElement
-
equals
implements a deepEPPLaunchPolicyPhasecompare. -
toString
Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent. -
getNamespace
Returns the XML namespace associated with theEPPCodecComponent.- Specified by:
getNamespacein interfaceEPPCodecComponent- Returns:
- XML namespace for the
EPPCodecComponent.
-
hasPhase
public boolean hasPhase()Is the phase defined?- Returns:
trueif the phase is defined;falseotherwise.
-
getPhase
Gets the phase value.- Returns:
EPPLaunchPolicyPhase.Phaseenumerated value if set;nullotherwise.
-
setPhase
Sets the phase value.- Parameters:
aPhase- Sets the phase value.
-
hasName
public boolean hasName()Is the name defined?- Returns:
trueif the name is defined;falseotherwise.
-
getName
Gets the OPTIONAL phase name or sub-phase name.- Returns:
- The phase name or sub-phase name if defined;
nullotherwise.
-
setName
Sets the OPTIONAL phase name or sub-phase name.- Parameters:
aName- Phase name
-
getMode
Gets the mode value.- Returns:
EPPLaunchPolicyPhase.Modeenumerated value, with the default value ofEPPLaunchPolicyPhase.Mode.fcfs.
-
setMode
Sets the mode value.- Parameters:
aMode- Sets the phase value. Ifnullthe default value ofEPPLaunchPolicyPhase.Mode.fcfs.
-
hasStartDate
public boolean hasStartDate()Is the start date defined?- Returns:
trueif the start date is defined;falseotherwise.
-
getStartDate
Get the start date and time for the phase.- Returns:
- Start date and time for the phase.
-
setCreateDate
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:
trueif the start date is defined;falseotherwise.
-
getEndDate
Get the OPTIONAL end date and time for the phase.- Returns:
- End date and time for the phase if defined;
nullotherwise.
-
setEndDate
Set end date and time for the phase.- Parameters:
aEndDate- End date and time for the phase. Set tonullif undefined.
-
hasValidatePhase
public boolean hasValidatePhase()Is the validate phase flag defined?- Returns:
trueif the validate phase flag is defined;falseotherwise.
-
getValidatePhase
Gets the OPTIONAL boolean value that indicates whether the server validates the phase provided by the client in the <launch:phase> element.- Returns:
trueorfalseindicating whether the server validates the phase provided by the client in the <launch:phase> element if defined;nullotherwise.
-
setValidatePhase
Sets the OPTIONAL boolean flag that indicates whether the server validates the phase provided by the client in the <launch:phase> element.- Parameters:
aValidatePhase-trueorfalseindicating whether the server validates the phase provided by the client in the <launch:phase> element. Set tonullif undefined.
-
hasValidatorIds
public boolean hasValidatorIds()Is the validator identifier list defined?- Returns:
trueif the validator identifier list is defined;falseotherwise.
-
getValidatorIds
Gets the validator identifier list.- Returns:
- Validator identifiers
-
setValidatorIds
Sets the validator identifier list.- Parameters:
aValidatorIds- List of validator identifiers.
-
addValidatorId
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:
trueif the status list is defined;falseotherwise.
-
getStatuses
Gets the status list. which defines the supported launch status values.- Returns:
- Supported launch statuses
-
setStatuses
Sets the status list. which defines the supported launch status values.- Parameters:
aStatuses- List of supported launch statuses
-
addStatus
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:
trueif the pending create flag is defined;falseotherwise.
-
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:
trueorfalseindicating that the server will place the Launch Application or the Launch Registration in the "pendingCreate" status as specified in [RFC5731] if defined;nullotherwise.
-
setPendingCreate
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-trueorfalseindicating that the server will place the Launch Application or the Launch Registration in the "pendingCreate" status as specified in [RFC5731]. Set tonullif undefined.
-
hasPollPolicy
public boolean hasPollPolicy()Is the poll policy defined?- Returns:
trueif the poll policy is defined;falseotherwise.
-
getPollPolicy
Gets the poll policy value.- Returns:
EPPLaunchPolicyPollPolicyinstance if defined;nullotherwise.
-
setPollPolicy
Sets the poll policy value.- Parameters:
aPollPolicy- Sets the poll policy value.
-
hasMarkValidations
public boolean hasMarkValidations()Is the mark validation list defined?- Returns:
trueif the mark validation is defined;falseotherwise.
-
getMarkValidations
Gets the mark validation list. which defines the supported mark validation models in the phase.- Returns:
- Supported mark validation models statuses
-
setMarkValidations
Sets the mark validation list. which defines the supported mark validation models in the phase.- Parameters:
aMarkValidations- List of supported mark validation models
-
addMarkValidation
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:
trueif the max marks is defined;falseotherwise.
-
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;
nullotherwise.
-
setMaxMarks
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 tonullif undefined.
-
hasMarksSupported
public boolean hasMarksSupported()Is the marks supported list defined?- Returns:
trueif the marks supported list is defined;falseotherwise.
-
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
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
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:
trueif the signed marks supported list is defined;falseotherwise.
-
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
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
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:
trueif the encoded signed marks supported list is defined;falseotherwise.
-
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
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
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:
trueif the check form list is defined;falseotherwise.
-
getCheckForms
Gets the check form list. which defines the supported check forms in the phase.- Returns:
- Supported check forms
-
setCheckForms
Sets the check form list. which defines the supported check forms in the phase.- Parameters:
aCheckForms- List of supported check forms
-
addCheckForm
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:
trueif the info phase list is defined;falseotherwise.
-
getInfoPhases
Gets the info phase list. which defines the supported info phase values.- Returns:
- Supported info launch phases
-
setInfoPhases
Sets the info phase list. which defines the supported info phase values.- Parameters:
aInfoPhases- List of supported info phase values.
-
addInfoPhase
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:
trueif the create form list is defined;falseotherwise.
-
getCreateForms
Gets the create form list. which defines the supported create forms in the phase.- Returns:
- Supported create forms
-
setCreateForms
Sets the create form list. which defines the supported create forms in the phase.- Parameters:
aCreateForms- List of supported create forms
-
addCreateForm
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:
trueif the create validate type flag is defined;falseotherwise.
-
getCreateValidateType
Gets the OPTIONAL boolean value that indicates whether the server validates the OPTIONAL <launch:create> "type" attribute.- Returns:
trueorfalseindicating whether the server validates the OPTIONAL <launch:create> "type" attribute. if defined;nullotherwise.
-
setCreateValidateType
Sets the OPTIONAL boolean value that indicates whether the server validates the OPTIONAL <launch:create> "type" attribute.- Parameters:
aCreateValidateType-trueorfalseindicating whether the server validates the OPTIONAL <launch:create> "type" attribute. Set tonullif undefined.
-