- java.lang.Object
-
- io.github.mmm.nls.cli.property.AbstractCliProperty<Class<? extends T>>
-
- io.github.mmm.nls.cli.property.CliClassProperty<T>
-
- Type Parameters:
T- type ofupper bound.
- All Implemented Interfaces:
CliProperty<Class<? extends T>>
public class CliClassProperty<T> extends AbstractCliProperty<Class<? extends T>>
Implementation ofCliPropertyforClass.- Since:
- 1.0.0
-
-
Constructor Summary
Constructors Constructor Description CliClassProperty(Localizable help, Class<T> bound, boolean mandatory, String... names)The constructor.CliClassProperty(Localizable help, Class<T> bound, Class<? extends T> defaultValue, String... names)The constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Class<? extends T>get()StringgetAsString()Class<T>getBound()Class<Class<? extends T>>getValueClass()voidset(Class<? extends T> 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
getName, isEmpty, isValid, validate
-
-
-
-
Constructor Detail
-
CliClassProperty
public CliClassProperty(Localizable help, Class<T> bound, boolean mandatory, String... names)
The constructor.- Parameters:
help- thehelp message.bound- theupper bound.mandatory- themandatoryflag.names- thenames.
-
CliClassProperty
public CliClassProperty(Localizable help, Class<T> bound, Class<? extends T> defaultValue, String... names)
The constructor.- Parameters:
help- thehelp message.bound- theupper bound.defaultValue- the initial defaultvalue.names- thenames.
-
-