|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openmdx.base.application.control.CmdLineOption
public class CmdLineOption
The CmdLineOption describes represents a single command line option Sample 1 -d -z --port 80 --logFile ../tst.log
| Constructor Summary | |
|---|---|
CmdLineOption(String id,
String usage)
Option declaration for switches. |
|
CmdLineOption(String id,
String usage,
int minimum)
Option declaration !!Restrictions!! The specification for optional arguments as the POSIX standard states is not implemented. |
|
CmdLineOption(String id,
String usage,
int minimum,
int maximum)
Option declaration !!Restrictions!! The specification for optional arguments as the POSIX standard states is not implemented. |
|
CmdLineOption(String id,
String usage,
int minimum,
int maximum,
boolean secret)
Option declaration !!Restrictions!! The specification for optional arguments as the POSIX standard states is not implemented. |
|
| Method Summary | |
|---|---|
String |
getId()
Returns the id |
int |
getMaximum()
Returns the maximum number of arguments for this option |
int |
getMinimum()
Returns the minimal number of arguments for this option |
String |
getUsage()
Returns the usage string |
boolean |
isSecret()
Returns true if the arguments for this option are secret (password, ...). |
boolean |
isSwitch()
Tests if the option is a switch |
String |
toString()
Returns a string representation |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public CmdLineOption(String id,
String usage)
id - The (long or short) switch's id.usage - The part of the usage string associated with
this specific switch.
public CmdLineOption(String id,
String usage,
int minimum,
int maximum)
id - The (long or short) option's id.usage - The part of the usage string associated with
this specific option.minimum - Defines the minimal number of repetitions for
this option.maximum - Defines the maximal number of repetitions for
this option.
public CmdLineOption(String id,
String usage,
int minimum,
int maximum,
boolean secret)
id - The (long or short) option's id.usage - The part of the usage string associated with
this specific option.minimum - Defines the minimal number of repetitions for
this option.maximum - Defines the maximal number of repetitions for
this option.secret - The option is secret. Meaning that its argument
must not be logged or made in other ways public.
public CmdLineOption(String id,
String usage,
int minimum)
id - The (long or short) option's id.usage - The part of the usage string associated with
this specific option.minimum - Defines the minimal number of repetitions for
this option.| Method Detail |
|---|
public String getId()
public String getUsage()
public boolean isSwitch()
public int getMinimum()
public int getMaximum()
public boolean isSecret()
public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||