Class UIOptionCollection.Builder<T extends UIOption<T>, S extends UIOptionCollection.Builder<T,S>>
java.lang.Object
org.apache.rat.ui.UIOptionCollection.Builder<T,S>
- Type Parameters:
T- the concreate type of the BaseOption.S- the concrete type being built.
- Direct Known Subclasses:
AntOptionCollection.Builder, MavenOptionCollection.Builder
- Enclosing class:
UIOptionCollection<T extends UIOption<T>>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final List<org.apache.commons.cli.Option> The list of unsupported RAT options. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedBuilder(BiFunction<UIOptionCollection<T>, org.apache.commons.cli.Option, T> mapper) Constructor for the builder. -
Method Summary
Modifier and TypeMethodDescriptionbuild()Build the UIOptionCollection.defaultValue(org.apache.commons.cli.Option option, String value) Specify the default values for an option.defaultValue(Arg arg, String value) Specify the default values for an Arg.protected final Sself()Returns this cast to<S>class.uiOption(org.apache.commons.cli.Option uiOption) Add a UI option to the collection.uiOptions(org.apache.commons.cli.Option... uiOption) Add a UI options to the collection.unsupported(org.apache.commons.cli.Option option) Register an option as unsupported.unsupported(Arg arg) Register multiple options as unsupported.
-
Field Details
-
unsupportedRatOptions
The list of unsupported RAT options.
-
-
Constructor Details
-
Builder
Constructor for the builder.
-
-
Method Details
-
build
-
self
-
uiOption
Add a UI option to the collection.- Parameters:
uiOption- the UI Option to add.- Returns:
- this
-
uiOptions
Add a UI options to the collection.- Parameters:
uiOption- the UIOptions (<T>objects) to add.- Returns:
- this
-
unsupported
-
unsupported
-
defaultValue
-
defaultValue
-