Package org.deltava.beans.testing
Class EquipmentRideScriptKey
java.lang.Object
org.deltava.beans.testing.EquipmentRideScriptKey
- All Implemented Interfaces:
Serializable
,Cloneable
,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 Summary
ConstructorDescriptionEquipmentRideScriptKey
(String programName, String eqType, boolean isCurrency) Creates the ride script key. -
Method Summary
Modifier and TypeMethodDescriptionReturns the object ID for this auditable object.Returns the aircraft type.Returns the equipment program name.int
hashCode()
boolean
Returns whether this is a currency Check Ride script.static boolean
Checks whether a Check Ride script key is valid.static EquipmentRideScriptKey
Parses an encoded equipment Check Ride script key.toString()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.deltava.beans.Auditable
getAuditType, isCrossApp
-
Constructor Details
-
EquipmentRideScriptKey
-
-
Method Details
-
parse
Parses an encoded equipment Check Ride script key.- Parameters:
key
- the key- Returns:
- an EquipmentRideScriptKey bean
-
isValid
Checks whether a Check Ride script key is valid.- Parameters:
id
- the ID- Returns:
- TRUE if valid, otherwise FALSE
-
getProgramName
-
getEquipmentType
-
isCurrency
public boolean isCurrency()Returns whether this is a currency Check Ride script.- Returns:
- TRUE if currency, otherwise FALSE
-
getAuditID
Description copied from interface:Auditable
Returns the object ID for this auditable object.- Specified by:
getAuditID
in interfaceAuditable
- Returns:
- the ID
-
hashCode
-
toString
-