Class AntOptionCollection
java.lang.Object
org.apache.rat.ui.UIOptionCollection<AntOption>
org.apache.rat.documentation.options.AntOptionCollection
The collection of AntOptions.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classThe Builder for the AntOptionCollection.static classA mapping of data type of XML format. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionconvertedFrom(AntOption antOption) Returns the set of AntOptions that the argument was converted from.getActualAntOption(AntOption antOption) If this option is converted to another option return that option otherwise return this option.Gets the map of standard Option names that are renamed to fit the Ant naming process.getRequiredAttributes(String name) Gets a map of attributes that are required for the example data.booleanisAttribute(AntOption antOption) Returnstrueif this argument is an attribute to the Ant RAT call.rename(org.apache.commons.cli.Option option) Extracts the UI based name string for an option.Methods inherited from class org.apache.rat.ui.UIOptionCollection
additionalOptions, defaultValue, getDescription, getMappedOption, getMappedOptions, getOptionMap, getOptions, getSelected, getUnsupportedOptions, isSelected, resetSelected
-
Constructor Details
-
AntOptionCollection
public AntOptionCollection()Creates an instance of the AntOption Collection.
-
-
Method Details
-
getRenameMap
Gets the map of standard Option names that are renamed to fit the Ant naming process.- Returns:
- the map of renamed Options.
-
rename
Description copied from class:UIOptionCollectionExtracts the UI based name string for an option. The default implementation return the string returned byArgumentTracker.extractKey(Option)- Overrides:
renamein classUIOptionCollection<AntOption>- Parameters:
option- the option to create the name for.- Returns:
- the name for the option in the UICollection name, may be the same as the option name.
-
convertedFrom
Returns the set of AntOptions that the argument was converted from.- Parameters:
antOption- the AntOption to check.- Returns:
- returns a Set of AntOptions that were converted to the argument. May be an empty set.
-
getActualAntOption
If this option is converted to another option return that option otherwise return this option.- Returns:
- the converted option.
-
isAttribute
Returnstrueif this argument is an attribute to the Ant RAT call.- Parameters:
antOption- the AntOption to check.- Returns:
trueif this argument is an attribute to the Ant RAT call.
-
getRequiredAttributes
Gets a map of attributes that are required for the example data.- Parameters:
name- the attribute name to lookup.- Returns:
- the map of attributes that are required for the example data.
-