Class UpdatableOptionGroupCollection
java.lang.Object
org.apache.rat.ui.UpdatableOptionGroupCollection
A collection of UpdatableOptionGroups.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionadd(org.apache.commons.cli.OptionGroup optionGroup) Adds an OptionGroup to the collection.booleancontains(org.apache.commons.cli.Option option) Returns true if the option is in any of the groups.findGroups(org.apache.commons.cli.Option option) Gets ll the UpdatableOptionGroups that the option is in.org.apache.commons.cli.Optionsoptions()Gets an Options object from this collection.Set<org.apache.commons.cli.Option> Gets the set of removed Options from the collection.org.apache.commons.cli.OptionsGets the unsupported options If multiple options from the a group are disabled they will be added to the options in a group together.
-
Constructor Details
-
UpdatableOptionGroupCollection
public UpdatableOptionGroupCollection()Creates an empty collection.
-
-
Method Details
-
add
Adds an OptionGroup to the collection. If the OptionGroup is not an UpdatableOptionGroup it is converted first.- Parameters:
optionGroup- an OptionGroup to add.- Returns:
- the UpdatableOptionGroup that was added.
-
options
public org.apache.commons.cli.Options options()Gets an Options object from this collection.- Returns:
- an Options object.
-
findGroups
Gets ll the UpdatableOptionGroups that the option is in.- Parameters:
option- the option to searhc for.- Returns:
- the stream of UpdatableOptionGroups the option is in.
-
removedOptions
Gets the set of removed Options from the collection.- Returns:
- the set of removed options.
-
unsupportedOptions
public org.apache.commons.cli.Options unsupportedOptions()Gets the unsupported options If multiple options from the a group are disabled they will be added to the options in a group together.- Returns:
- the Options object containing all the unsupported options.
-
contains
public boolean contains(org.apache.commons.cli.Option option) Returns true if the option is in any of the groups.- Parameters:
option- the option.- Returns:
trueif the option is in any of the groups.
-