Class EPPLaunchPolicyPhaseStatus
java.lang.Object
com.verisign.epp.codec.launchpolicy.v01.EPPLaunchPolicyPhaseStatus
- All Implemented Interfaces:
EPPCodecComponent,Serializable,Cloneable
EPPLaunchPolicyPhaseStatus defines a supported launch status value.
The EPPLaunchPolicyPhaseStatus.Status enumeration includes the possible set of status values
with the optional name attribute used when the status is
EPPLaunchPolicyPhaseStatus.Status.custom.- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumPossible launch phase statuses used by thestatusesattribute. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringXML attribute name used for the OPTIONALlangattribute.static final StringXML attribute name used for the OPTIONALnameattribute.static final StringXML attribute name used for thestatusattribute.static final StringDefault Language -- English "en"static final StringDefault root element local namestatic final StringConstant for the phase qualified name (prefix and local name) -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor forEPPLaunchPolicyPhaseStatus.EPPLaunchPolicyPhaseStatusconstructor that takes the requiredstatusattribute value.EPPLaunchPolicyPhaseStatus(EPPLaunchPolicyPhaseStatus.Status aStatus, String aName) EPPLaunchPolicyPhaseStatusconstructor that takes the requiredstatusattribute value along with a custom name attribute.EPPLaunchPolicyPhaseStatus(EPPLaunchPolicyPhaseStatus.Status aStatus, String aName, String aLang, String aDescription) EPPLaunchPolicyPhaseStatusconstructor that takes attribute values. -
Method Summary
Modifier and TypeMethodDescriptionclone()CloneEPPLaunchPolicyPhaseStatus.voidDecode theEPPLaunchPolicyPhaseStatusattributes from the aElement DOM Element tree.Encode a DOM Element tree from the attributes of theEPPLaunchPolicyPhaseStatusinstance.booleanimplements a deepEPPLaunchPolicyPhaseStatuscompare.Gets the status description, which is free form text describing the rationale for the status.getLang()Gets the language of the status description with the default set toDEFAULT_LANG.getName()Gets the OPTIONAL custom status name.Returns the XML namespace associated with theEPPCodecComponent.protected StringGets the root element local name.Gets the phase status value.booleanIs the description defined?booleanhasName()Is the name defined?booleanIs the status value defined?voidsetDescription(String aDesc) Sets the status description, which is free form text describing the rationale for the status.voidSets the language of the status description with the default set toDEFAULT_LANG.voidSets the OPTIONAL custom status name.voidSets the phase status value.toString()Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.
-
Field Details
-
ELM_LOCALNAME
Default root element local name- See Also:
-
DEFAULT_LANG
Default Language -- English "en"- See Also:
-
ELM_NAME
Constant for the phase qualified name (prefix and local name)- See Also:
-
ATTR_STATUS
XML attribute name used for thestatusattribute.- See Also:
-
ATTR_NAME
XML attribute name used for the OPTIONALnameattribute.- See Also:
-
ATTR_LANG
XML attribute name used for the OPTIONALlangattribute.- See Also:
-
-
Constructor Details
-
EPPLaunchPolicyPhaseStatus
public EPPLaunchPolicyPhaseStatus()Default constructor forEPPLaunchPolicyPhaseStatus. Thestatusattribute must be set. -
EPPLaunchPolicyPhaseStatus
EPPLaunchPolicyPhaseStatusconstructor that takes the requiredstatusattribute value.- Parameters:
aStatus- Launch phase status value
-
EPPLaunchPolicyPhaseStatus
EPPLaunchPolicyPhaseStatusconstructor that takes the requiredstatusattribute value along with a custom name attribute.- Parameters:
aStatus- Launch phase status valueaName- Custom status name. Set tonullif undefined.
-
EPPLaunchPolicyPhaseStatus
public EPPLaunchPolicyPhaseStatus(EPPLaunchPolicyPhaseStatus.Status aStatus, String aName, String aLang, String aDescription) EPPLaunchPolicyPhaseStatusconstructor that takes attribute values.- Parameters:
aStatus- Phase status valueaName- OPTIONAL custom status name. Set tonullif undefined.aLang- OPTIONAL language of the status description with a default ofDEFAULT_LANG. Set toDEFAULT_LANGornullto use the default value.aDescription- Description of the status rationale
-
-
Method Details
-
getRootName
Gets the root element local name.- Returns:
- Root element local name.
-
encode
Encode a DOM Element tree from the attributes of theEPPLaunchPolicyPhaseStatusinstance.- Specified by:
encodein interfaceEPPCodecComponent- Parameters:
aDocument- DOM Document that is being built. Used as an Element factory.- Returns:
- Element Root DOM Element representing the
EPPLaunchPolicyPhaseStatusinstance. - Throws:
EPPEncodeException- - Unable to encodeEPPLaunchPolicyPhaseStatusinstance.
-
decode
Decode theEPPLaunchPolicyPhaseStatusattributes from the aElement DOM Element tree.- Specified by:
decodein interfaceEPPCodecComponent- Parameters:
aElement- Root DOM Element to decodeEPPLaunchPolicyPhaseStatusfrom.- Throws:
EPPDecodeException- Unable to decode aElement
-
equals
implements a deepEPPLaunchPolicyPhaseStatuscompare. -
clone
CloneEPPLaunchPolicyPhaseStatus.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classObject- Returns:
- clone of
EPPLaunchPolicyPhaseStatus - Throws:
CloneNotSupportedException- standard Object.clone exception
-
toString
Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent. -
hasStatus
public boolean hasStatus()Is the status value defined?- Returns:
trueif the status is defined;falseotherwise.
-
getStatus
Gets the phase status value.- Returns:
- Phase status value if defined;
nullotherwise.
-
setStatus
Sets the phase status value.- Parameters:
aStatus- The phase status value.
-
hasName
public boolean hasName()Is the name defined?- Returns:
trueif the name is defined;falseotherwise.
-
getName
Gets the OPTIONAL custom status name.- Returns:
- The custom phase name if defined;
nullotherwise.
-
setName
Sets the OPTIONAL custom status name.- Parameters:
aName- Custom status name
-
getLang
Gets the language of the status description with the default set toDEFAULT_LANG.- Returns:
- Language of description with the default value of
DEFAULT_LANG.
-
setLang
Sets the language of the status description with the default set toDEFAULT_LANG.- Parameters:
aLang- Language of description. If set tonull, the value will be set to the default ofDEFAULT_LANG.
-
hasDescription
public boolean hasDescription()Is the description defined?- Returns:
trueif the description is defined;falseotherwise.
-
getDescription
Gets the status description, which is free form text describing the rationale for the status.- Returns:
- Status description if defined;
nullotherwise.
-
setDescription
Sets the status description, which is free form text describing the rationale for the status.- Parameters:
aDesc- Status description. Set tonullif undefined.
-
getNamespace
Returns the XML namespace associated with theEPPCodecComponent.- Specified by:
getNamespacein interfaceEPPCodecComponent- Returns:
- XML namespace for the
EPPCodecComponent.
-