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 TypeMethodDescriptionintReturns the Airline.Returns the object ID for this auditable object.getCode()Returns the livery code.booleanReturns whether this is the default livery.Returns the livery description.Returns the CSS class for this object if rendered in a view table.inthashCode()voidsetDefault(boolean isDefault) Updates whether this is the default livery for the airline.voidsetDescription(String desc) Updates the livery description.toString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, waitMethods 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:
compareToin interfaceComparable<Livery>
-
getRowClassName
Description copied from interface:ViewEntryReturns the CSS class for this object if rendered in a view table.- Specified by:
getRowClassNamein interfaceViewEntry- Returns:
- the CSS class name, or NULL if none
-
getAuditID
Description copied from interface:AuditableReturns the object ID for this auditable object.- Specified by:
getAuditIDin interfaceAuditable- Returns:
- the ID
-