org.eodisp.util.configuration
Class ManualCommandlineMapper.CommandlineOption

java.lang.Object
  extended by org.eodisp.util.configuration.ManualCommandlineMapper.CommandlineOption
Enclosing class:
ManualCommandlineMapper

public static class ManualCommandlineMapper.CommandlineOption
extends java.lang.Object

Helper class to define a command line option's:


Field Summary
(package private)  java.lang.String help
          The help text.
(package private)  java.lang.String longFlag
          The long flag.
(package private)  boolean required
          If the command line is required.
(package private)  java.lang.Character shortFlag
          The short flag.
 
Constructor Summary
ManualCommandlineMapper.CommandlineOption(java.lang.Character shortFlag, java.lang.String longFlag, java.lang.String help)
           
ManualCommandlineMapper.CommandlineOption(java.lang.Character shortFlag, java.lang.String longFlag, java.lang.String help, boolean required)
           
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

shortFlag

java.lang.Character shortFlag
The short flag. If null> the standard mapping is applied. See BasicCommandlineMapper.


longFlag

java.lang.String longFlag
The long flag. If null> the standard mapping is applied. See BasicCommandlineMapper.


help

java.lang.String help
The help text. If null> the standard mapping is applied. See BasicCommandlineMapper.


required

boolean required
If the command line is required. If null> the standard mapping is applied, which is false). See BasicCommandlineMapper.

Constructor Detail

ManualCommandlineMapper.CommandlineOption

public ManualCommandlineMapper.CommandlineOption(java.lang.Character shortFlag,
                                                 java.lang.String longFlag,
                                                 java.lang.String help)
Parameters:
shortFlag - The short flag. If null> the standard mapping is applied. See BasicCommandlineMapper.
longFlag - The long flag. If null> the standard mapping is applied. See BasicCommandlineMapper.
help - The help text. If null> the standard mapping is applied. See BasicCommandlineMapper.

ManualCommandlineMapper.CommandlineOption

public ManualCommandlineMapper.CommandlineOption(java.lang.Character shortFlag,
                                                 java.lang.String longFlag,
                                                 java.lang.String help,
                                                 boolean required)
Parameters:
shortFlag - The short flag. If null> the standard mapping is applied. See BasicCommandlineMapper.
longFlag - The long flag. If null> the standard mapping is applied. See BasicCommandlineMapper.
help - The help text. If null> the standard mapping is applied. See BasicCommandlineMapper.
required - If the command line is required. If null> the standard mapping is applied, which is false). Has no effect on configuration entries of type boolean. See BasicCommandlineMapper.