Class AntOption
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassAn example code generator for this AntOption. -
Field Summary
Fields inherited from class UIOption
argumentType, name, option, optionCollection, PATTERN -
Constructor Summary
ConstructorsConstructorDescriptionAntOption(UIOptionCollection<AntOption> collection, org.apache.commons.cli.Option option) Constructor. -
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.Gets the set of options that are mapped to this option.If this option is converted to another option return that option otherwise return this option.Gets an example of how to use this option in the native UI.getText()return a string showing long and short options if they are available.booleanReturnstrueif the option should be an attribute of the <rat:report> element.booleanReturnstrueif the option should be a child element of the <rat:report> element.toString()Methods inherited from class UIOption
cleanup, getArgName, getArgType, getCasedName, getDefaultValue, getDeprecated, getDescription, getName, getOption, getOptionCollection, getType, hasArg, hasArgs, isDeprecated, isRequired, keyValue
-
Constructor Details
-
AntOption
Constructor.- Parameters:
option- the option to wrap.
-
-
Method Details
-
isAttribute
public boolean isAttribute()Returnstrueif the option should be an attribute of the <rat:report> element.- Returns:
trueif the option should be an attribute of the <rat:report> element.
-
toString
-
isElement
public boolean isElement()Returnstrueif the option should be a child element of the <rat:report> element.- Returns:
trueif the option should be a child element of the <rat:report> element.
-
getActualAntOption
If this option is converted to another option return that option otherwise return this option.- Returns:
- the converted option.
-
convertedFrom
-
getText
-
cleanupName
Description copied from class:UIOptionProvide means to wrap the given option depending on the UI-specific option implementation.- Specified by:
cleanupNamein classUIOption<AntOption>- Parameters:
option- The CLI option- Returns:
- the cleaned up option name.
-
cleanupName
-
buildType
-
getExample
Description copied from class:UIOptionGets an example of how to use this option in the native UI.- Specified by:
getExamplein classUIOption<AntOption>- Returns:
- An example of how to use this option in the native UI.
-