|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.fuin.kickstart4j.CmdLineOption
public final class CmdLineOption
Represents a single command line option.
| Constructor Summary | |
|---|---|
CmdLineOption(String key,
String valueName,
String usage)
Constructor for a optional option. |
|
CmdLineOption(String key,
String valueName,
String usage,
boolean required)
Constructor with required argument. |
|
| Method Summary | |
|---|---|
String |
getKey()
Returns the key of the option. |
String |
getOptionText(MessagesWrapper msg)
Returns the option text. |
String |
getUsage()
Returns the text displayed in the usage message. |
String |
getValueName()
Returns the name of the value displayed in the usage message. |
boolean |
isRequired()
Returns if the the value is required or optional. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CmdLineOption(String key,
String valueName,
String usage)
key - Key (short name) of the option.valueName - Name of the value displayed in the usage message.usage - Text displayed in the usage message.
public CmdLineOption(String key,
String valueName,
String usage,
boolean required)
key - Key (short name) of the option.valueName - Name of the value displayed in the usage message.usage - Text displayed in the usage message.required - Determines if the value is required or optional.| Method Detail |
|---|
public final String getKey()
public final String getUsage()
public final boolean isRequired()
true else false.public final String getValueName()
public final String getOptionText(MessagesWrapper msg)
msg - Localized message texts.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||