Class Installer
java.lang.Object
org.deltava.beans.fleet.LibraryEntry
org.deltava.beans.fleet.FleetEntry
org.deltava.beans.fleet.Installer
- All Implemented Interfaces:
Serializable
,Cloneable
,Comparable<LibraryEntry>
,Auditable
,ComboAlias
,ViewEntry
,Cacheable
A bean to store information about Fleet Library installers.
- Since:
- 1.0
- Version:
- 6.0
- Author:
- Luke
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addApp
(AirlineInformation info) Adds this Installer to an Airline's Fleet Library.void
addFSVersion
(Simulator sim) Adds a Simulator version compatible with this Fleet Installer.getApps()
Returns the Airlines whose Fleet Libraries will include this Installer.getCode()
Returns this installer's equipment code.Returns the alias to use in the HTML <OPTION> element.Returns the visible name to use in the HTML <OPTION> element.Returns the Simulator versions compatible with this Installer.getImage()
Returns this installer's label image.Returns a string representation of the version (MAJOR.MINOR.SUB).Returns a string representation of the version (MAJORMINORSUB).void
Updates this installer's equipment type code (eg.void
Updates this installer's label image name.Methods inherited from class org.deltava.beans.fleet.FleetEntry
getLastModified, getMajorVersion, getMinorVersion, getSubVersion, setLastModified, setVersion
Methods inherited from class org.deltava.beans.fleet.LibraryEntry
cacheKey, compareTo, file, getAuditID, getDescription, getDownloadCount, getFileName, getFullName, getName, getOwner, getRowClassName, getSecurity, getSize, hashCode, setDescription, setDownloadCount, setName, setOwner, setSecurity, setSize, 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
-
Installer
Creates a new Fleet Installer entry for a given file.- Parameters:
f
- the File
-
-
Method Details
-
getApps
Returns the Airlines whose Fleet Libraries will include this Installer.- Returns:
- a Collection of AirlineInformation beans
- See Also:
-
getCode
Returns this installer's equipment code.- Returns:
- the equipment code
- See Also:
-
getImage
Returns this installer's label image.- Returns:
- the image resource name
- See Also:
-
getVersion
Returns a string representation of the version (MAJOR.MINOR.SUB).- Specified by:
getVersion
in classFleetEntry
- Returns:
- a version string
-
getVersionCode
Returns a string representation of the version (MAJORMINORSUB).- Returns:
- a version code
-
addApp
Adds this Installer to an Airline's Fleet Library.- Parameters:
info
- an AirlineInformation bean- See Also:
-
addFSVersion
Adds a Simulator version compatible with this Fleet Installer.- Parameters:
sim
- a Simulator- See Also:
-
getFSVersions
Returns the Simulator versions compatible with this Installer.- Returns:
- a Collection of Simulators
-
setCode
Updates this installer's equipment type code (eg. DC8)- Parameters:
code
- the equipment type code (will be converted to uppercase)- See Also:
-
setImage
Updates this installer's label image name.- Parameters:
imgName
- the image resource name- See Also:
-
getComboName
Description copied from interface:ComboAlias
Returns the visible name to use in the HTML <OPTION> element.- Specified by:
getComboName
in interfaceComboAlias
- Returns:
- The visible name for this entry
-
getComboAlias
Description copied from interface:ComboAlias
Returns the alias to use in the HTML <OPTION> element.- Specified by:
getComboAlias
in interfaceComboAlias
- Returns:
- The alias for this entry
-