|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.mcdermottroe.exemplar.ui.cli.ExitStatus
public final class ExitStatus
A class to wrap and explain exit status codes produced by the CLI UI.
| Field Summary | |
|---|---|
private static Set<ExitCode> |
exitCodes
The stash of all known exit codes. |
| Constructor Summary | |
|---|---|
private |
ExitStatus()
Private constructor to prevent instantiation of this class. |
| Method Summary | |
|---|---|
static int |
getExitCode(String mnemonic)
Convert a mnemonic exit code to an integer suitable for returning to the calling shell. |
static Set<ExitCode> |
getExitCodes()
Get all of the exit codes. |
private static void |
initialise()
Initialisation routine to pull the exit codes out of the JAR and load them into the stash. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private static Set<ExitCode> exitCodes
| Constructor Detail |
|---|
private ExitStatus()
| Method Detail |
|---|
private static void initialise()
public static int getExitCode(String mnemonic)
mnemonic - The mnemonic String for the exit code.
public static Set<ExitCode> getExitCodes()
Set of exit codes.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||