Enum Class FlightStatus

java.lang.Object
java.lang.Enum<FlightStatus>
org.deltava.beans.flight.FlightStatus
All Implemented Interfaces:
Serializable, Comparable<FlightStatus>, Constable, ComboAlias, EnumDescription, ViewEntry

public enum FlightStatus extends Enum<FlightStatus> implements ViewEntry, EnumDescription
An enumeration to store Flight Report states.
Since:
8.1
Version:
10.2
Author:
Luke
  • Enum Constant Details

  • Method Details

    • values

      public static FlightStatus[] 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

      public static FlightStatus valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • getVerb

      public String getVerb()
      Returns the operation verb name.
      Returns:
      the operation
    • getIsComplete

      public boolean getIsComplete()
      Returns whether this is a final state for a Flight Report.
      Returns:
      TRUE if final, otherwise FALSE
    • getDescription

      public String getDescription()
      Description copied from interface: EnumDescription
      The propercased description.
      Specified by:
      getDescription in interface EnumDescription
      Returns:
      the description
    • getRowClassName

      public String getRowClassName()
      Description copied from interface: ViewEntry
      Returns the CSS class for this object if rendered in a view table.
      Specified by:
      getRowClassName in interface ViewEntry
      Returns:
      the CSS class name, or NULL if none
    • fromVerb

      public static FlightStatus fromVerb(String verb)
      Exception-safe way to load FlightStatus from Flight Report approval verb.
      Parameters:
      verb - the verb
      Returns:
      a FlightStatus, or null if unknown