Class SimpleCommandLineParser.BooleanOption
- java.lang.Object
-
- de.gebit.integrity.runner.console.SimpleCommandLineParser.Option
-
- de.gebit.integrity.runner.console.SimpleCommandLineParser.BooleanOption
-
- Enclosing class:
- SimpleCommandLineParser
public static class SimpleCommandLineParser.BooleanOption extends SimpleCommandLineParser.Option
A boolean command line option.- Author:
- Rene Schneider - initial API and implementation
-
-
Constructor Summary
Constructors Constructor Description BooleanOption(java.lang.String aShortName, java.lang.String aLongName)Creates a new boolean option.BooleanOption(java.lang.String aShortName, java.lang.String aLongName, java.lang.String aDescription)Creates a new boolean option.BooleanOption(java.lang.String aShortName, java.lang.String aLongName, java.lang.String aDescription, java.lang.String aCommandLine)Creates a new boolean option.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisSet()protected booleanmatches(java.lang.String aParameter)Checks whether this matches a given parameter.-
Methods inherited from class de.gebit.integrity.runner.console.SimpleCommandLineParser.Option
getCommandLine, getDescription, getHelpLine, getLongName, getShortName
-
-
-
-
Constructor Detail
-
BooleanOption
public BooleanOption(java.lang.String aShortName, java.lang.String aLongName)Creates a new boolean 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.
-
BooleanOption
public BooleanOption(java.lang.String aShortName, java.lang.String aLongName, java.lang.String aDescription)Creates a new boolean 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.
-
BooleanOption
public BooleanOption(java.lang.String aShortName, java.lang.String aLongName, java.lang.String aDescription, java.lang.String aCommandLine)Creates a new boolean 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(java.lang.String aParameter)
Description copied from class:SimpleCommandLineParser.OptionChecks whether this matches a given parameter.- Overrides:
matchesin classSimpleCommandLineParser.Option- Parameters:
aParameter- the parameter- Returns:
- true if a match is found, false otherwise
-
isSet
public boolean isSet()
-
-