- java.lang.Object
-
- io.github.mmm.nls.cli.property.AbstractCliProperty<Boolean>
-
- io.github.mmm.nls.cli.property.CliBooleanProperty
-
- All Implemented Interfaces:
CliProperty<Boolean>
- Direct Known Subclasses:
CliFlagProperty
public class CliBooleanProperty extends AbstractCliProperty<Boolean>
Implementation ofCliPropertyforBoolean.
-
-
Constructor Summary
Constructors Constructor Description CliBooleanProperty(Localizable help, boolean mandatory, String... names)The constructor.CliBooleanProperty(Localizable help, Boolean defaultValue, String... names)The constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Booleanget()Class<Boolean>getValueClass()voidset(Boolean value)voidsetFromString(String value)-
Methods inherited from class io.github.mmm.nls.cli.property.AbstractCliProperty
getHelp, getNames, isMandatory, isOption, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface io.github.mmm.nls.cli.property.CliProperty
getAsString, getName, isEmpty, isValid, validate
-
-
-
-
Constructor Detail
-
CliBooleanProperty
public CliBooleanProperty(Localizable help, boolean mandatory, String... names)
The constructor.- Parameters:
help- thehelp message.mandatory- themandatoryflag.names- thenames.
-
CliBooleanProperty
public CliBooleanProperty(Localizable help, Boolean defaultValue, String... names)
The constructor.- Parameters:
help- thehelp message.defaultValue- the initial defaultvalue.names- thenames.
-
-