Class MavenOption
A representation of a Maven option based on an option.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classThe builder for the MavenOptions.Nested classes/interfaces inherited from class org.apache.rat.ui.UIOption
UIOption.Builder<T extends UIOption<T>,B extends UIOption.Builder<T, B>> -
Field Summary
Fields inherited from class org.apache.rat.ui.UIOption
argumentType, name, option, optionCollection, PATTERN -
Method Summary
Modifier and TypeMethodDescriptionprotected StringcleanupName(org.apache.commons.cli.Option option) getExample(String... args) Create example text for the option.Gets the method name for this option.getMethodSignature(String indent, boolean multiple) Gets the Maven Mojo method signature for this Option.getParameterAnnotation(String camelName) Creates the@Parameterannotation for this option.getText()toString()Methods inherited from class org.apache.rat.ui.UIOption
cleanup, equals, getArgName, getArgType, getCasedName, getDefaultValue, getDeprecated, getDescription, getName, getOption, getOptionCollection, getType, hasArg, hasArgs, hashCode, isDeprecated, isRequired, keyValue
-
Method Details
-
toString
-
getMethodName
Gets the method name for this option.- Returns:
- the method name for this option.
-
cleanupName
- Specified by:
cleanupNamein classUIOption<MavenOption>
-
getText
- Specified by:
getTextin classUIOption<MavenOption>
-
getExample
- Specified by:
getExamplein classUIOption<MavenOption>
-
getExample
Create example text for the option.- Parameters:
args- the example arguments for the option.- Returns:
- a formatted option.
-
getMethodSignature
Gets the Maven Mojo method signature for this Option.- Parameters:
indent- the number of spaces to indent the text.multiple-trueif this option takes multiple arguments.- Returns:
- the method signature for this Option.
-
getParameterAnnotation
Creates the@Parameterannotation for this option.- Parameters:
camelName- the camel cased name for this option.- Returns:
- the string that is the parameter annotation.
-