|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectreservation.system.functions.Functions
reservation.system.functions.Reload
This class hold Reload structure. This object allows to load the data previous saved in a file.
Field Summary |
Fields inherited from class reservation.system.functions.Functions |
arg |
Fields inherited from interface reservation.Action |
fs, NUMBER_ARGUMENT_MAX |
Constructor Summary | |
Reload()
|
Method Summary | |
(package private) void |
_check(java.lang.String[] arg)
Verify invariants : - Argument not null - The number of argument equals 1 - File's name exists - The file can be read |
java.lang.String |
execute()
Reload the data previous stored in a file. |
static java.lang.String |
usage()
Display the usage for the command reload . |
Methods inherited from class reservation.system.functions.Functions |
ArgumentIsValid, CheckBookingListNotEmpty, CheckFlightListNotEmpty, checkInteger, execute |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Reload()
Method Detail |
void _check(java.lang.String[] arg) throws java.lang.Exception
- Argument not null - The number of argument equals 1 - File's name exists - The file can be read
_check
in class Functions
java.lang.Exception
- if the file doesn't exist or cannot read.public static java.lang.String usage()
reload
.
public java.lang.String execute() throws java.lang.Exception
execute
in class Functions
java.lang.Exception
- if the file is not reloaded.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |