Enum ResultStatus
-
- All Implemented Interfaces:
public enum ResultStatusThe result status of the person or team at the time of the result generation.
Java class for ResultStatus
.The following schema fragment specifies the expected content contained within this class.
<simpleType name="ResultStatus"> <restriction base="{http://www.w3.org/2001/XMLSchema}NMTOKEN"> <enumeration value="OK"/> <enumeration value="Finished"/> <enumeration value="MissingPunch"/> <enumeration value="Disqualified"/> <enumeration value="DidNotFinish"/> <enumeration value="Active"/> <enumeration value="Inactive"/> <enumeration value="OverTime"/> <enumeration value="SportingWithdrawal"/> <enumeration value="NotCompeting"/> <enumeration value="Moved"/> <enumeration value="MovedUp"/> <enumeration value="DidNotStart"/> <enumeration value="DidNotEnter"/> <enumeration value="Cancelled"/> </restriction> </simpleType>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description OKFinished and validated.
FINISHEDFinished but not yet validated.
MISSING_PUNCHMissing punch.
DISQUALIFIEDDisqualified (for some other reason than a missing punch).
DID_NOT_FINISHDid not finish (i.e. conciously cancelling the race after having started, in contrast to MissingPunch).
ACTIVECurrently on course.
INACTIVEHas not yet started.
OVER_TIMEOvertime, i.e. did not finish within the maximum time set by the organiser.
SPORTING_WITHDRAWALSporting withdrawal (e.g. helping an injured competitor).
NOT_COMPETINGNot competing (i.e. running outside the competition).
MOVEDMoved to another class.
MOVED_UPMoved to a "better" class, in case of entry restrictions.
DID_NOT_STARTDid not start (in this race).
DID_NOT_ENTERDid not enter (in this race).
CANCELLEDThe competitor has cancelled his/hers entry.
-
Method Summary
Modifier and Type Method Description Stringvalue()Gets the value associated to the enum constant. static ResultStatusfromValue(String v)Gets the enum associated to the value passed as parameter. static Array<ResultStatus>values()Returns an array containing the constants of this enum type, in the order they're declared. static ResultStatusvalueOf(String name)Returns the enum constant of this type with the specified name. -
-
Method Detail
-
value
String value()
Gets the value associated to the enum constant.
- Returns:
Thevalue linked to the enum.
-
fromValue
static ResultStatus fromValue(String v)
Gets the enum associated to the value passed as parameter.
- Parameters:
v- The value to get the enum from.- Returns:
Theenum which corresponds to the value, if it exists.
-
values
static Array<ResultStatus> values()
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants.
- Returns:
an array containing the constants of this enum type, in the order they're declared
-
valueOf
static ResultStatus valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
- Returns:
the enum constant with the specified name
-
-
-
-