|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.deltava.beans.schedule.Airline
public class Airline
A class for storing Airline information.
| Constructor Summary | |
|---|---|
Airline(String code)
Create a new Airline using a code. |
|
Airline(String code,
String name)
Create a new Airline using a code and a name. |
|
| Method Summary | |
|---|---|
void |
addApp(String app)
Adds a web application to this Airline. |
void |
addCode(String code)
Adds an alternate airline code to this Airline. |
Object |
cacheKey()
Cache key. |
int |
compareTo(Airline a2)
Airline object comparator - compare the codes. |
boolean |
equals(Object o2)
|
boolean |
getActive()
Returns if the airline is active. |
Collection<String> |
getApplications()
Returns the web applications this airline is enabled for. |
String |
getCode()
Returns the airline code. |
Collection<String> |
getCodes()
Returns all valid airline codes for this Airline. |
String |
getColor()
The color to use then displaying this Airline's destinations or routes in a Google Map. |
String |
getComboAlias()
Returns the alias to use in the HTML <OPTION> element. |
String |
getComboName()
Returns the visible name to use in the HTML <OPTION> element. |
String |
getName()
Returns the airline name. |
int |
hashCode()
|
void |
setActive(boolean active)
Updates the airline's activity flag. |
void |
setApps(Collection<String> apps)
Updates the web applications this Airline is enabled for. |
void |
setCode(String code)
Updates the Airline's primary code. |
void |
setCodes(Collection<String> codes)
Clears and updates the list of alternate airline codes. |
void |
setColor(String color)
Updates the color used when displaying this Airline's routes and destinations in a Google Map. |
void |
setName(String name)
Updates the airline name. |
String |
toString()
Returns the airline code. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Airline(String code)
code - the Airline code
NullPointerException - if the name is nullgetCode()
public Airline(String code,
String name)
code - the Airline codename - the Airline name
NullPointerException - If either the name or the code are nullgetCode(),
getName()| Method Detail |
|---|
public String getCode()
public Collection<String> getApplications()
setApps(Collection),
addApp(String),
AirlineInformation.getCode()public Collection<String> getCodes()
addCode(String)public String getName()
getName()public boolean getActive()
setActive(boolean)public String getColor()
setColor(String),
MapEntry.COLORSpublic void setActive(boolean active)
active - TRUE if the airline is enabled, otherwise FALSEgetActive()public void addApp(String app)
app - the application codesetApps(Collection),
getApplications(),
AirlineInformation.getCode()public void setApps(Collection<String> apps)
apps - a Collection of application codesgetApplications(),
addApp(String),
AirlineInformation.getCode()public void addCode(String code)
code - the airline code
NullPointerException - if code is nullgetCodes()public void setCode(String code)
code - the airline code
NullPointerException - if code is nullgetCode()public void setColor(String color)
color - the color code
IllegalArgumentException - if not a valid Google Map colorgetColor(),
MapEntry.COLORSpublic void setCodes(Collection<String> codes)
codes - a Collection of airline codes
NullPointerException - if codes is nulladdCode(String),
getCodes()public String getComboAlias()
ComboAlias
getComboAlias in interface ComboAliaspublic String getComboName()
ComboAlias
getComboName in interface ComboAliaspublic void setName(String name)
name - the Airline Name
NullPointerException - if name is nullgetName()public int compareTo(Airline a2)
compareTo in interface Comparable<Airline>public final boolean equals(Object o2)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic String toString()
toString in class Objectpublic Object cacheKey()
cacheKey in interface Cacheable
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||