Class Livery

java.lang.Object
org.deltava.beans.acars.Livery
All Implemented Interfaces:
Serializable, Cloneable, Comparable<Livery>, Auditable, ViewEntry

public class Livery extends Object implements 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 Details

    • Livery

      public Livery(Airline a, String code)
      Initializes the bean.
      Parameters:
      a - the Airline
      code - the livery code
      Throws:
      NullPointerException - if code is null
  • Method Details

    • getAirline

      public Airline getAirline()
      Returns the Airline.
      Returns:
      the Airline bean
    • getCode

      public String getCode()
      Returns the livery code.
      Returns:
      the code
    • getDescription

      public String getDescription()
      Returns the livery description.
      Returns:
      the description
    • getDefault

      public boolean getDefault()
      Returns whether this is the default livery.
      Returns:
      TRUE if the default livery, otherwise FALSE
      See Also:
    • setDescription

      public void setDescription(String desc)
      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

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

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

      public int compareTo(Livery l2)
      Specified by:
      compareTo in interface Comparable<Livery>
    • 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
    • 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