Class EPPLaunchPolicyPhaseStatus
- java.lang.Object
-
- com.verisign.epp.codec.launchpolicy.v01.EPPLaunchPolicyPhaseStatus
-
- All Implemented Interfaces:
EPPCodecComponent,java.io.Serializable,java.lang.Cloneable
public class EPPLaunchPolicyPhaseStatus extends java.lang.Object implements EPPCodecComponent
EPPLaunchPolicyPhaseStatusdefines a supported launch status value. TheEPPLaunchPolicyPhaseStatus.Statusenumeration includes the possible set of status values with the optional name attribute used when the status isEPPLaunchPolicyPhaseStatus.Status.custom.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classEPPLaunchPolicyPhaseStatus.StatusPossible launch phase statuses used by thestatusesattribute.
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringATTR_LANGXML attribute name used for the OPTIONALlangattribute.static java.lang.StringATTR_NAMEXML attribute name used for the OPTIONALnameattribute.static java.lang.StringATTR_STATUSXML attribute name used for thestatusattribute.static java.lang.StringDEFAULT_LANGDefault Language -- English "en"static java.lang.StringELM_LOCALNAMEDefault root element local namestatic java.lang.StringELM_NAMEConstant for the phase qualified name (prefix and local name)
-
Constructor Summary
Constructors Constructor Description EPPLaunchPolicyPhaseStatus()Default constructor forEPPLaunchPolicyPhaseStatus.EPPLaunchPolicyPhaseStatus(EPPLaunchPolicyPhaseStatus.Status aStatus)EPPLaunchPolicyPhaseStatusconstructor that takes the requiredstatusattribute value.EPPLaunchPolicyPhaseStatus(EPPLaunchPolicyPhaseStatus.Status aStatus, java.lang.String aName)EPPLaunchPolicyPhaseStatusconstructor that takes the requiredstatusattribute value along with a custom name attribute.EPPLaunchPolicyPhaseStatus(EPPLaunchPolicyPhaseStatus.Status aStatus, java.lang.String aName, java.lang.String aLang, java.lang.String aDescription)EPPLaunchPolicyPhaseStatusconstructor that takes attribute values.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Objectclone()CloneEPPLaunchPolicyPhaseStatus.voiddecode(org.w3c.dom.Element aElement)Decode theEPPLaunchPolicyPhaseStatusattributes from the aElement DOM Element tree.org.w3c.dom.Elementencode(org.w3c.dom.Document aDocument)Encode a DOM Element tree from the attributes of theEPPLaunchPolicyPhaseStatusinstance.booleanequals(java.lang.Object aObject)implements a deepEPPLaunchPolicyPhaseStatuscompare.java.lang.StringgetDescription()Gets the status description, which is free form text describing the rationale for the status.java.lang.StringgetLang()Gets the language of the status description with the default set toDEFAULT_LANG.java.lang.StringgetName()Gets the OPTIONAL custom status name.java.lang.StringgetNamespace()Returns the XML namespace associated with theEPPCodecComponent.protected java.lang.StringgetRootName()Gets the root element local name.EPPLaunchPolicyPhaseStatus.StatusgetStatus()Gets the phase status value.booleanhasDescription()Is the description defined?booleanhasName()Is the name defined?booleanhasStatus()Is the status value defined?voidsetDescription(java.lang.String aDesc)Sets the status description, which is free form text describing the rationale for the status.voidsetLang(java.lang.String aLang)Sets the language of the status description with the default set toDEFAULT_LANG.voidsetName(java.lang.String aName)Sets the OPTIONAL custom status name.voidsetStatus(EPPLaunchPolicyPhaseStatus.Status aStatus)Sets the phase status value.java.lang.StringtoString()Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.
-
-
-
Field Detail
-
ELM_LOCALNAME
public static final java.lang.String ELM_LOCALNAME
Default root element local name- See Also:
- Constant Field Values
-
DEFAULT_LANG
public static final java.lang.String DEFAULT_LANG
Default Language -- English "en"- See Also:
- Constant Field Values
-
ELM_NAME
public static final java.lang.String ELM_NAME
Constant for the phase qualified name (prefix and local name)- See Also:
- Constant Field Values
-
ATTR_STATUS
public static final java.lang.String ATTR_STATUS
XML attribute name used for thestatusattribute.- See Also:
- Constant Field Values
-
ATTR_NAME
public static final java.lang.String ATTR_NAME
XML attribute name used for the OPTIONALnameattribute.- See Also:
- Constant Field Values
-
ATTR_LANG
public static final java.lang.String ATTR_LANG
XML attribute name used for the OPTIONALlangattribute.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
EPPLaunchPolicyPhaseStatus
public EPPLaunchPolicyPhaseStatus()
Default constructor forEPPLaunchPolicyPhaseStatus. Thestatusattribute must be set.
-
EPPLaunchPolicyPhaseStatus
public EPPLaunchPolicyPhaseStatus(EPPLaunchPolicyPhaseStatus.Status aStatus)
EPPLaunchPolicyPhaseStatusconstructor that takes the requiredstatusattribute value.- Parameters:
aStatus- Launch phase status value
-
EPPLaunchPolicyPhaseStatus
public EPPLaunchPolicyPhaseStatus(EPPLaunchPolicyPhaseStatus.Status aStatus, java.lang.String aName)
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, java.lang.String aName, java.lang.String aLang, java.lang.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 Detail
-
getRootName
protected java.lang.String getRootName()
Gets the root element local name.- Returns:
- Root element local name.
-
encode
public org.w3c.dom.Element encode(org.w3c.dom.Document aDocument) throws EPPEncodeExceptionEncode 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
public void decode(org.w3c.dom.Element aElement) throws EPPDecodeExceptionDecode 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
public boolean equals(java.lang.Object aObject)
implements a deepEPPLaunchPolicyPhaseStatuscompare.- Overrides:
equalsin classjava.lang.Object- Parameters:
aObject-EPPLaunchPolicyPhaseStatusinstance to compare with- Returns:
trueif this object is the same as the aObject argument;falseotherwise
-
clone
public java.lang.Object clone() throws java.lang.CloneNotSupportedExceptionCloneEPPLaunchPolicyPhaseStatus.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classjava.lang.Object- Returns:
- clone of
EPPLaunchPolicyPhaseStatus - Throws:
java.lang.CloneNotSupportedException- standard Object.clone exception
-
toString
public java.lang.String toString()
Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.- Overrides:
toStringin classjava.lang.Object- Returns:
- Indented XML
Stringif successful;ERRORotherwise.
-
hasStatus
public boolean hasStatus()
Is the status value defined?- Returns:
trueif the status is defined;falseotherwise.
-
getStatus
public EPPLaunchPolicyPhaseStatus.Status getStatus()
Gets the phase status value.- Returns:
- Phase status value if defined;
nullotherwise.
-
setStatus
public void setStatus(EPPLaunchPolicyPhaseStatus.Status aStatus)
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
public java.lang.String getName()
Gets the OPTIONAL custom status name.- Returns:
- The custom phase name if defined;
nullotherwise.
-
setName
public void setName(java.lang.String aName)
Sets the OPTIONAL custom status name.- Parameters:
aName- Custom status name
-
getLang
public java.lang.String 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
public void setLang(java.lang.String aLang)
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
public java.lang.String getDescription()
Gets the status description, which is free form text describing the rationale for the status.- Returns:
- Status description if defined;
nullotherwise.
-
setDescription
public void setDescription(java.lang.String aDesc)
Sets the status description, which is free form text describing the rationale for the status.- Parameters:
aDesc- Status description. Set tonullif undefined.
-
getNamespace
public java.lang.String getNamespace()
Returns the XML namespace associated with theEPPCodecComponent.- Specified by:
getNamespacein interfaceEPPCodecComponent- Returns:
- XML namespace for the
EPPCodecComponent.
-
-