|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.marketcetera.util.auth.Setter<T>
org.marketcetera.util.auth.CliSetter<T>
public abstract class CliSetter<T extends Holder<?>>
A setter that obtains holder data via a command-line. It is
supported by a CliContext.
| Constructor Summary | |
|---|---|
CliSetter(T holder,
I18NBoundMessage usage,
String shortForm,
String longForm,
I18NBoundMessage description)
Constructor mirroring superclass constructor. |
|
| Method Summary | |
|---|---|
void |
addOption(Options options)
Adds the receiver command-line option to the given options. |
I18NBoundMessage |
getDescription()
Returns the description of the receiver's command-line option. |
String |
getLongForm()
Returns the long form of the receiver's command-line option. |
String |
getShortForm()
Returns the short form of the receiver's command-line option. |
abstract void |
setValue(CommandLine commandLine)
Sets the holder's data by obtaining it from the given parsed command-line. |
| Methods inherited from class org.marketcetera.util.auth.Setter |
|---|
getHolder, getUsage |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CliSetter(T holder,
I18NBoundMessage usage,
String shortForm,
String longForm,
I18NBoundMessage description)
shortForm - The short form.longForm - The long form.description - The description.Setter.Setter(Holder,I18NBoundMessage)| Method Detail |
|---|
public String getShortForm()
public String getLongForm()
public I18NBoundMessage getDescription()
public void addOption(Options options)
CliContext.
options - The command-line options.public abstract void setValue(CommandLine commandLine)
CliContext.
commandLine - The command-line.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||