Enum Class FlightStatus
- All Implemented Interfaces:
Serializable
,Comparable<FlightStatus>
,Constable
,ComboAlias
,EnumDescription
,ViewEntry
An enumeration to store Flight Report states.
- Since:
- 8.1
- Version:
- 10.2
- Author:
- Luke
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic FlightStatus
Exception-safe way to load FlightStatus from Flight Report approval verb.The propercased description.boolean
Returns whether this is a final state for a Flight Report.Returns the CSS class for this object if rendered in a view table.getVerb()
Returns the operation verb name.static FlightStatus
Returns the enum constant of this class with the specified name.static FlightStatus[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
Methods inherited from interface org.deltava.beans.EnumDescription
getComboAlias, getComboName, name
-
Enum Constant Details
-
DRAFT
-
SUBMITTED
-
HOLD
-
OK
-
REJECTED
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
getVerb
-
getIsComplete
public boolean getIsComplete()Returns whether this is a final state for a Flight Report.- Returns:
- TRUE if final, otherwise FALSE
-
getDescription
Description copied from interface:EnumDescription
The propercased description.- Specified by:
getDescription
in interfaceEnumDescription
- Returns:
- the description
-
getRowClassName
Description copied from interface:ViewEntry
Returns the CSS class for this object if rendered in a view table.- Specified by:
getRowClassName
in interfaceViewEntry
- Returns:
- the CSS class name, or NULL if none
-
fromVerb
Exception-safe way to load FlightStatus from Flight Report approval verb.- Parameters:
verb
- the verb- Returns:
- a FlightStatus, or null if unknown
-