|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.eodisp.util.configuration.BasicCommandlineMapper
class BasicCommandlineMapper
A basic implementation of the mapper interface. Maps configuration entries of
type boolean to Switch,
others to FlaggedOption instances. The id of the JSAP parameter is
set to the following string:
ConfigurationId.ConfigurationEntryId. The long flag is the
key of the configuration entry (Configuration.Entry.getKey())
and the help is set from the configuration's description (Configuration.Entry.getDescription()).
| Field Summary | |
|---|---|
(package private) static CommandlineMapper |
INSTANCE
|
| Fields inherited from interface org.eodisp.util.configuration.CommandlineMapper |
|---|
BASIC_COMMAND_LINE_MAPPER, NULL_COMMAND_LINE_MAPPER |
| Constructor Summary | |
|---|---|
BasicCommandlineMapper()
|
|
| Method Summary | |
|---|---|
com.martiansoftware.jsap.Parameter |
mapEntry(Configuration.Entry entry)
Returns the JSAP parameter (command line option) that is mapped to the given entry. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
static CommandlineMapper INSTANCE
| Constructor Detail |
|---|
BasicCommandlineMapper()
| Method Detail |
|---|
public com.martiansoftware.jsap.Parameter mapEntry(Configuration.Entry entry)
CommandlineMappernull means that no command
line option shall be created for the given entry.
mapEntry in interface CommandlineMapperentry - the entry that shall be mapped to a parameter
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||