Package com.hexagonkt.args
Class Parameter
-
-
Field Summary
Fields Modifier and Type Field Description private final Set<String>namesprivate final KClass<T>typeprivate final Stringnameprivate final Stringdescriptionprivate final Regexregexprivate final Booleanoptionalprivate final Booleanmultipleprivate final Stringtagprivate final List<T>values
-
Constructor Summary
Constructors Constructor Description Parameter(KClass<T> type, String name, String description, Regex regex, String tag, T value)Parameter(KClass<T> type, String name, String description, Regex regex, String tag, List<T> values)Parameter(KClass<T> type, String name, String description, Regex regex, Boolean optional, Boolean multiple, String tag, List<T> values)
-
Method Summary
Modifier and Type Method Description Set<String>getNames()KClass<T>getType()final StringgetName()StringgetDescription()RegexgetRegex()BooleangetOptional()BooleangetMultiple()StringgetTag()TODO To group properties (for listing or alternatives). List<T>getValues()Property<T>addValues(Property<?> value)Parameter<T>addValue(String value)-
-
Method Detail
-
getNames
Set<String> getNames()
-
getName
final String getName()
-
getDescription
String getDescription()
-
getRegex
Regex getRegex()
-
getOptional
Boolean getOptional()
-
getMultiple
Boolean getMultiple()
-
getTag
String getTag()
TODO To group properties (for listing or alternatives). I.e.: '|alternate|' for grouping options that are exclusive or 'Common Options' to group in help
-
-
-
-