Class SimpleCommandLineParser.Option
- java.lang.Object
-
- de.gebit.integrity.runner.console.SimpleCommandLineParser.Option
-
- Direct Known Subclasses:
SimpleCommandLineParser.BooleanOption,SimpleCommandLineParser.ValueOption
- Enclosing class:
- SimpleCommandLineParser
public abstract static class SimpleCommandLineParser.Option extends Object
Base class for command line options.- Author:
- Rene Schneider - initial API and implementation
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetCommandLine()StringgetDescription()StringgetHelpLine()Returns the line for the parameter help.StringgetLongName()StringgetShortName()protected booleanmatches(String aParameter)Checks whether this matches a given parameter.
-
-
-
Constructor Detail
-
Option
protected Option(String aShortName, String aLongName, String aDescription, String aCommandLine)
Creates a new Option.- Parameters:
aShortName- The short name of the option. Usually just one character.aLongName- The long name of the option, generelly a comprehendable, but not-too-long string.aDescription- The command line help string for this option.aCommandLine- The description for the help.
-
-
Method Detail
-
matches
protected boolean matches(String aParameter)
Checks whether this matches a given parameter.- Parameters:
aParameter- the parameter- Returns:
- true if a match is found, false otherwise
-
getShortName
public String getShortName()
-
getLongName
public String getLongName()
-
getDescription
public String getDescription()
-
getCommandLine
public String getCommandLine()
-
getHelpLine
public String getHelpLine()
Returns the line for the parameter help.
-
-