Package com.verisign.epp.codec.launch
Class EPPLaunchStatus
java.lang.Object
com.verisign.epp.codec.launch.EPPLaunchStatus
- All Implemented Interfaces:
EPPCodecComponent,Serializable,Cloneable
Launch application status constants that are returned by
EPPLaunchInfData.getStatus() or set with
EPPLaunchInfData.setStatus(EPPLaunchStatus).- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringOPTIONAL attribute name that can define a sub-status or the full name of the status when the <launch:status> element has the "custom" value.static final StringStatus attribute keystatic final StringConstant for the status local namestatic final StringConstant for the status qualified name (prefix and local name)static final StringOne of two possible end states of an application object; the object corresponding to the application has been provisioned.static final StringA custom status that is defined using the "name" attribute.static final StringThe application does not validate according to registry rules.static final StringThe allocation of the application is pending based on the results of some out-of-band process (for example, an auction).static final StringThe initial state of a newly-created application object.static final StringThe other possible end state; the object was not provisioned.static final StringThe application meets relevant registry rules. -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.EPPLaunchStatus(String aStatus) CreateEPPLaunchStatusinstance with a defined status value.EPPLaunchStatus(String aStatus, String aName) CreateEPPLaunchStatusinstance with a defined status value and with the status name value.EPPLaunchStatus(String aStatus, String aName, String aDescription, String aDescriptionLang) CreateEPPLaunchStatusinstance with all attributes. -
Method Summary
Modifier and TypeMethodDescriptionclone()CloneEPPLaunchStatus.voidDecode theEPPLaunchStatuselement aElement DOM Element tree.Encode a DOM Element tree from the attributes of theEPPLaunchStatusinstance.booleanimplements a deepEPPLaunchStatuscompare.Gets the free-form description of the rationale for the status.Gets the description language value.getName()Gets the OPTIONAL status name or sub-status name.Returns the XML namespace associated with theEPPCodecComponent.Gets the status value, which should match one of theSTATUSconstants.booleanIs the description defined?booleanIs the description language defined with a non-default value??voidsetDescription(String aDescription) Sets the free-form description of the rationale for the status.voidsetDescriptionLang(String aDescriptionLang) Sets the description language value.voidSets the OPTIONAL status name or sub-status name.voidSets the status value.toString()Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.
-
Field Details
-
STATUS_PENDING_VALIDATION
The initial state of a newly-created application object. The application requires validation, but the validation process has not yet completed.- See Also:
-
STATUS_VALIDATED
The application meets relevant registry rules.- See Also:
-
STATUS_INVALID
The application does not validate according to registry rules.- See Also:
-
STATUS_PENDING_ALLOCATION
The allocation of the application is pending based on the results of some out-of-band process (for example, an auction).- See Also:
-
STATUS_ALLOCATED
One of two possible end states of an application object; the object corresponding to the application has been provisioned.- See Also:
-
STATUS_REJECTED
The other possible end state; the object was not provisioned.- See Also:
-
STATUS_CUSTOM
A custom status that is defined using the "name" attribute.- See Also:
-
ELM_LOCALNAME
Constant for the status local name- See Also:
-
ELM_NAME
Constant for the status qualified name (prefix and local name)- See Also:
-
ATTR_STATUS
Status attribute key- See Also:
-
ATTR_NAME
OPTIONAL attribute name that can define a sub-status or the full name of the status when the <launch:status> element has the "custom" value.- See Also:
-
-
Constructor Details
-
EPPLaunchStatus
public EPPLaunchStatus()Default constructor. The status value MUST be set using thesetStatus(String)method. -
EPPLaunchStatus
CreateEPPLaunchStatusinstance with a defined status value.- Parameters:
aStatus- Status value using one of theSTATUSconstants.
-
EPPLaunchStatus
CreateEPPLaunchStatusinstance with a defined status value and with the status name value.- Parameters:
aStatus- Status value using one of theSTATUSconstants.aName- Name of sub-status or full name of status whenaStatusis set toSTATUS_CUSTOM.
-
EPPLaunchStatus
CreateEPPLaunchStatusinstance with all attributes.- Parameters:
aStatus- Status value using one of theSTATUSconstants.aName- Name of sub-status or full name of status whenaStatusis set toSTATUS_CUSTOM.aDescription- human-readable text that describes the rationale for the status applied to the object.aDescriptionLang- The OPTIONAL "lang" attribute, as defined in [RFC5646], MAY be present to identify the language if the negotiated value is something other than the default value of "en" (English).
-
-
Method Details
-
getStatus
Gets the status value, which should match one of theSTATUSconstants.- Returns:
- Status value
-
setStatus
Sets the status value.- Parameters:
aStatus- Status value, which should be one of theSTATUSconstants.
-
getName
Gets the OPTIONAL status name or sub-status name.- Returns:
- The status name or sub-status name if defined;
nullotherwise.
-
setName
Sets the OPTIONAL status name or sub-status name.- Parameters:
aName- Status name
-
hasDescription
public boolean hasDescription()Is the description defined?- Returns:
trueif the description is defined;falseotherwise.
-
getDescription
Gets the free-form description of the rationale for the status.- Returns:
- The free-form description of the rationale for the status if
defined;
nullotherwise.
-
setDescription
Sets the free-form description of the rationale for the status.- Parameters:
aDescription- Free-form description of the rationale for the status.
-
hasDescriptionLang
public boolean hasDescriptionLang()Is the description language defined with a non-default value??- Returns:
trueif the description language is defined;falseotherwise.
-
getDescriptionLang
Gets the description language value.- Returns:
- Description language if defined;
DEFAULT_LANGotherwise.
-
setDescriptionLang
Sets the description language value.- Parameters:
aDescriptionLang- Description language for reason value.
-
clone
CloneEPPLaunchStatus.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classObject- Returns:
- clone of
EPPLaunchStatus - Throws:
CloneNotSupportedException- standard Object.clone exception
-
decode
Decode theEPPLaunchStatuselement aElement DOM Element tree.- Specified by:
decodein interfaceEPPCodecComponent- Parameters:
aElement- - Root DOM Element to decodeEPPLaunchStatusfrom.- Throws:
EPPDecodeException- Unable to decode aElement
-
encode
Encode a DOM Element tree from the attributes of theEPPLaunchStatusinstance.- Specified by:
encodein interfaceEPPCodecComponent- Parameters:
aDocument- - DOM Document that is being built. Used as an Element factory.- Returns:
- Element - Root DOM Element representing the
EPPLaunchStatusinstance. - Throws:
EPPEncodeException- - Unable to encodeEPPLaunchStatusinstance.
-
equals
implements a deepEPPLaunchStatuscompare. -
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.
-