|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.marketcetera.util.auth.Context<CliSetter<?>>
org.marketcetera.util.auth.CliContext
public class CliContext
A context for command-line setters (CliSetter). This
context provides command-line parsing, so that individual setters
may use command-line options to set their holder data.
| Constructor Summary | |
|---|---|
CliContext(boolean override,
String[] args)
Constructor mirroring superclass constructor. |
|
CliContext(I18NBoundMessage name,
boolean override,
String[] args)
Constructor mirroring superclass constructor. |
|
| Method Summary | |
|---|---|
String[] |
getArgs()
Returns the receiver's command-line arguments. |
CommandLine |
getCommandLine()
Returns the receiver's parsed command-line. |
OptionsProvider |
getOptionsProvider()
Returns the receiver's options provider. |
ParseException |
getParseException()
Returns any failure that the receiver encountered when parsing the command line. |
void |
setOptionsProvider(OptionsProvider optionsProvider)
Sets the receiver's options provider, via which additional options may be added to the command-line. |
void |
setValues()
Sets the data of the holders associated with the receivers' setters. |
| Methods inherited from class org.marketcetera.util.auth.Context |
|---|
add, getName, getOverride, getSetters, printUsage, shouldProcess |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CliContext(I18NBoundMessage name,
boolean override,
String[] args)
args - The command-line arguments.Context.Context(I18NBoundMessage,boolean)
public CliContext(boolean override,
String[] args)
args - The command-line arguments.Context.Context(I18NBoundMessage,boolean)| Method Detail |
|---|
public String[] getArgs()
public CommandLine getCommandLine()
public void setValues()
throws I18NException
Context
setValues in class Context<CliSetter<?>>I18NException - Thrown if the receiver cannot create an
operational context for its setters, and therefore the setters
cannot even attempt to set their holder data.public void setOptionsProvider(OptionsProvider optionsProvider)
optionsProvider - The provider.public OptionsProvider getOptionsProvider()
public ParseException getParseException()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||