Package org.apache.rat.tools
Class AntOption
java.lang.Object
org.apache.rat.tools.AbstractOption
org.apache.rat.tools.AntOption
A class that wraps the CLI option and provides Ant specific values.
-
Field Summary
Fields inherited from class org.apache.rat.tools.AbstractOption
name, option, PATTERN
-
Method Summary
Modifier and TypeMethodDescriptionprotected String
cleanupName
(org.apache.commons.cli.Option option) Get the signature of the attribute function.getComment
(boolean addParam) Get the method comment for this option.boolean
Returnstrue
if the option should be an attribute of the <rat:report> element.boolean
Returnstrue
if the option should be a child element of the <rat:report> element.Methods inherited from class org.apache.rat.tools.AbstractOption
cleanup, getArgName, getDefaultValue, getDeprecated, getDescription, getName, getType, hasArg, hasArgs, isDeprecated, isRequired, keyValue
-
Method Details
-
isAttribute
public boolean isAttribute()Returnstrue
if the option should be an attribute of the <rat:report> element.- Returns:
true
if the option should be an attribute of the <rat:report> element.
-
isElement
public boolean isElement()Returnstrue
if the option should be a child element of the <rat:report> element.- Returns:
true
if the option should be a child element of the <rat:report> element.
-
cleanupName
- Specified by:
cleanupName
in classAbstractOption
-
getComment
Get the method comment for this option.- Parameters:
addParam
- iftrue
the param annotation is added.- Returns:
- the Comment block for the function.
-
getAttributeFunctionName
Get the signature of the attribute function.- Returns:
- the signature of the attribute function.
-