|
|||||||||
| 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(java.lang.String key,
java.lang.String valueName,
java.lang.String usage)
Constructor for a optional option. |
|
CmdLineOption(java.lang.String key,
java.lang.String valueName,
java.lang.String usage,
boolean required)
Constructor with required argument. |
|
| Method Summary | |
|---|---|
java.lang.String |
getKey()
Returns the key of the option. |
java.lang.String |
getOptionText(MessagesWrapper msg)
Returns the option text. |
java.lang.String |
getUsage()
Returns the text displayed in the usage message. |
java.lang.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(java.lang.String key,
java.lang.String valueName,
java.lang.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(java.lang.String key,
java.lang.String valueName,
java.lang.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 java.lang.String getKey()
public final java.lang.String getUsage()
public final boolean isRequired()
true else false.public final java.lang.String getValueName()
public final java.lang.String getOptionText(MessagesWrapper msg)
msg - Localized message texts.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||