Class UpdatableOptionGroupCollection

java.lang.Object
org.apache.rat.ui.UpdatableOptionGroupCollection

public class UpdatableOptionGroupCollection extends Object
A collection of UpdatableOptionGroups.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates an empty collection.
  • Method Summary

    Modifier and Type
    Method
    Description
    add(org.apache.commons.cli.OptionGroup optionGroup)
    Adds an OptionGroup to the collection.
    boolean
    contains(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.Options
    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.Options
    Gets the unsupported options If multiple options from the a group are disabled they will be added to the options in a group together.

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • UpdatableOptionGroupCollection

      public UpdatableOptionGroupCollection()
      Creates an empty collection.
  • Method Details

    • add

      public UpdatableOptionGroup add(org.apache.commons.cli.OptionGroup optionGroup)
      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

      public Stream<UpdatableOptionGroup> findGroups(org.apache.commons.cli.Option option)
      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

      public Set<org.apache.commons.cli.Option> 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:
      true if the option is in any of the groups.