Class MavenOption
java.lang.Object
org.apache.rat.documentation.options.AbstractOption
org.apache.rat.documentation.options.MavenOption
A representation of a CLI option as a Maven option
-
Field Summary
Fields inherited from class org.apache.rat.documentation.options.AbstractOption
argumentType, name, option, PATTERN -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringcleanupName(org.apache.commons.cli.Option option)Provide means to wrap the given option depending on the UI-specific option implementation.Return default value.Gets an example of how to use this option in the native UI.static Set<org.apache.commons.cli.Option>Gets the set of options that are not supported by Maven.static List<MavenOption>getMethodSignature(String indent, boolean multiple)getPropertyAnnotation(String fname)getText()return a string showing long and short options if they are available.Methods inherited from class org.apache.rat.documentation.options.AbstractOption
argCount, cleanup, cleanupName, getArgName, getArgType, getDeprecated, getDescription, getName, getOption, getType, hasArg, hasArgs, isDeprecated, isRequired, keyValue
-
Constructor Details
-
MavenOption
public MavenOption(org.apache.commons.cli.Option option)Constructor.- Parameters:
option- The CLI option
-
-
Method Details
-
getMavenOptions
-
getRenameMap
-
getFilteredOptions
Gets the set of options that are not supported by Maven.- Returns:
- The set of options that are not supported by Maven.
-
cleanupName
Description copied from class:AbstractOptionProvide means to wrap the given option depending on the UI-specific option implementation.- Specified by:
cleanupNamein classAbstractOption- Parameters:
option- The CLI option- Returns:
- the cleaned up option name.
-
getText
Description copied from class:AbstractOptionreturn a string showing long and short options if they are available. Will return a string.- Specified by:
getTextin classAbstractOption- Returns:
- A string showing long and short options if they are available. Never
null.
-
getDefaultValue
Description copied from class:AbstractOptionReturn default value.- Overrides:
getDefaultValuein classAbstractOption- Returns:
- default value or
nullif no argument given.
-
getPropertyAnnotation
-
getMethodSignature
-
getExample
Description copied from class:AbstractOptionGets an example of how to use this option in the native UI.- Specified by:
getExamplein classAbstractOption- Returns:
- An example of how to use this option in the native UI.
-