Class EquipmentRideScriptKey

java.lang.Object
org.deltava.beans.testing.EquipmentRideScriptKey
All Implemented Interfaces:
Serializable, Cloneable, Auditable

public class EquipmentRideScriptKey extends Object implements Auditable
A class to generate and parse compound keys for equipment Check Ride scripts.
Since:
8.0
Version:
8.0
Author:
Luke
See Also:
  • Constructor Details

    • EquipmentRideScriptKey

      public EquipmentRideScriptKey(String programName, String eqType, boolean isCurrency)
      Creates the ride script key.
      Parameters:
      programName - the equipment program name
      eqType - the equipment type
      isCurrency - TRUE if a currency check ride, otherwise FALSE
  • Method Details

    • parse

      public static EquipmentRideScriptKey parse(String key)
      Parses an encoded equipment Check Ride script key.
      Parameters:
      key - the key
      Returns:
      an EquipmentRideScriptKey bean
    • isValid

      public static boolean isValid(String id)
      Checks whether a Check Ride script key is valid.
      Parameters:
      id - the ID
      Returns:
      TRUE if valid, otherwise FALSE
    • getProgramName

      public String getProgramName()
      Returns the equipment program name.
      Returns:
      the program name
    • getEquipmentType

      public String getEquipmentType()
      Returns the aircraft type.
      Returns:
      the type
    • isCurrency

      public boolean isCurrency()
      Returns whether this is a currency Check Ride script.
      Returns:
      TRUE if currency, otherwise FALSE
    • getAuditID

      public String getAuditID()
      Description copied from interface: Auditable
      Returns the object ID for this auditable object.
      Specified by:
      getAuditID in interface Auditable
      Returns:
      the ID
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object