|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.expasy.jpl.commons.app.AbstractApplicationParameters
public abstract class AbstractApplicationParameters
A basic command line parameter handler.
| Field Summary | |
|---|---|
protected Properties |
settings
the parameters |
protected org.apache.commons.cli.HelpFormatter |
usage
usage |
| Constructor Summary | |
|---|---|
AbstractApplicationParameters(Class<?> app,
String version,
String mandatoryParams,
String[] params)
|
|
| Method Summary | |
|---|---|
abstract void |
addSettings(Properties settings)
|
abstract org.apache.commons.cli.Options |
createAppOptions()
add the app specific options |
Properties |
createBaseSettings()
|
String |
getCommandLine()
|
File |
getConfigFile()
|
String |
getParamInfos()
|
abstract String |
getSpecificParamInfos()
|
String |
getVersion()
|
abstract void |
init()
|
boolean |
isVerbose()
|
abstract void |
parseArguments(List<String> argList)
|
abstract void |
parseSpecificOptions(org.apache.commons.cli.Options options,
Properties settings,
org.apache.commons.cli.CommandLine line)
|
void |
setHeader(String header)
|
protected void |
setPropertyValues()
This method handles all setting/conversions of parameter values to the correct type. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected Properties settings
protected final org.apache.commons.cli.HelpFormatter usage
| Constructor Detail |
|---|
public AbstractApplicationParameters(Class<?> app,
String version,
String mandatoryParams,
String[] params)
| Method Detail |
|---|
public Properties createBaseSettings()
protected void setPropertyValues()
throws org.apache.commons.cli.ParseException
org.apache.commons.cli.ParseException - if convertion failed.public String getParamInfos()
public abstract void init()
public abstract void addSettings(Properties settings)
public abstract String getSpecificParamInfos()
public abstract org.apache.commons.cli.Options createAppOptions()
public abstract void parseSpecificOptions(org.apache.commons.cli.Options options,
Properties settings,
org.apache.commons.cli.CommandLine line)
throws org.apache.commons.cli.ParseException
org.apache.commons.cli.ParseException
public abstract void parseArguments(List<String> argList)
throws org.apache.commons.cli.ParseException
org.apache.commons.cli.ParseExceptionpublic final String getCommandLine()
public final String getVersion()
public final void setHeader(String header)
public final File getConfigFile()
public final boolean isVerbose()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||