Class Livery
java.lang.Object
org.deltava.beans.acars.Livery
- All Implemented Interfaces:
Serializable
,Cloneable
,Comparable<Livery>
,Auditable
,ViewEntry
A bean to store ACARS multi-player airline livery data.
- Since:
- 2.2
- Version:
- 10.0
- Author:
- Luke
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
Returns the Airline.Returns the object ID for this auditable object.getCode()
Returns the livery code.boolean
Returns whether this is the default livery.Returns the livery description.Returns the CSS class for this object if rendered in a view table.int
hashCode()
void
setDefault
(boolean isDefault) Updates whether this is the default livery for the airline.void
setDescription
(String desc) Updates the livery description.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
-
Livery
Initializes the bean.- Parameters:
a
- the Airlinecode
- the livery code- Throws:
NullPointerException
- if code is null
-
-
Method Details
-
getAirline
-
getCode
-
getDescription
-
getDefault
public boolean getDefault()Returns whether this is the default livery.- Returns:
- TRUE if the default livery, otherwise FALSE
- See Also:
-
setDescription
Updates the livery description.- Parameters:
desc
- the description- See Also:
-
setDefault
public void setDefault(boolean isDefault) Updates whether this is the default livery for the airline.- Parameters:
isDefault
- TRUE if the default livery, otherwise FALSE- See Also:
-
toString
-
hashCode
-
compareTo
- Specified by:
compareTo
in interfaceComparable<Livery>
-
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
-
getAuditID
Description copied from interface:Auditable
Returns the object ID for this auditable object.- Specified by:
getAuditID
in interfaceAuditable
- Returns:
- the ID
-