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 String
cleanupName
(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:AbstractOption
Provide means to wrap the given option depending on the UI-specific option implementation.- Specified by:
cleanupName
in classAbstractOption
- Parameters:
option
- The CLI option- Returns:
- the cleaned up option name.
-
getText
Description copied from class:AbstractOption
return a string showing long and short options if they are available. Will return a string.- Specified by:
getText
in classAbstractOption
- Returns:
- A string showing long and short options if they are available. Never
null
.
-
getDefaultValue
Description copied from class:AbstractOption
Return default value.- Overrides:
getDefaultValue
in classAbstractOption
- Returns:
- default value or
null
if no argument given.
-
getPropertyAnnotation
-
getMethodSignature
-
getExample
Description copied from class:AbstractOption
Gets an example of how to use this option in the native UI.- Specified by:
getExample
in classAbstractOption
- Returns:
- An example of how to use this option in the native UI.
-