Class RatTool
java.lang.Object
org.apache.rat.documentation.velocity.RatTool
The Velocity RAT plugin that provides access to the RAT data.
DEVHINT: Be careful when removing methods as this may invalidate contents and functionality of the velocity templates.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets a map client option name to Ant Option.Escapes a string for APT (almost plain text).Gets the list of argument types.Gets a map client option name to CLI Option.Gets two new lines.Gets a list of license property descriptions.licenses()
Gets the list of defined licenses.markdownEscape
(String text) Escapes a string for markdown.matchers()
Gets the set of Matchers.Gets a map client option name to Maven Option.List
<org.apache.commons.cli.Option> options()
Gets the list of command line options.pad
(int length) Creates a string of spaces of the specified length.Gets the list of standard collections.org.apache.commons.lang3.StringUtils
Gets theStringUtils
object in order to work with it in Velocity templates.Gets the list of stylesheets.tab()
Gets a tab character.
-
Constructor Details
-
RatTool
public RatTool()Constructor.
-
-
Method Details
-
options
Gets the list of command line options.- Returns:
- the list of command line options.
-
antOptions
Gets a map client option name to Ant Option.- Returns:
- a map client option name to Ant Option.
-
cliOptions
Gets a map client option name to CLI Option.- Returns:
- a map client option name to CLI Option.
-
mvnOptions
Gets a map client option name to Maven Option.- Returns:
- a map client option name to Maven Option.
-
markdownEscape
Escapes a string for markdown.- Parameters:
text
- the text to escape.- Returns:
- the text with the markdown specific characters escaped.
-
aptEscape
Escapes a string for APT (almost plain text).- Parameters:
text
- the text to escape.- Returns:
- the text with the APT specific characters escaped.
-
argumentTypes
Gets the list of argument types.- Returns:
- a list of argument types.
-
matchers
Gets the set of Matchers.- Returns:
- the set of Matchers.
-
standardCollections
Gets the list of standard collections.- Returns:
- the list of standard collections.
-
styleSheets
Gets the list of stylesheets.- Returns:
- the list of stylesheets.
-
stringUtils
public org.apache.commons.lang3.StringUtils stringUtils()Gets theStringUtils
object in order to work with it in Velocity templates.- Returns:
- the org.apache.commons.lang3 StringUtils object.
- See Also:
-
tab
Gets a tab character.- Returns:
- the tab character.
-
doubleLine
Gets two new lines.- Returns:
- a string containing two new lines.
-
licenseProperties
Gets a list of license property descriptions.- Returns:
- a list of license property descriptions.
-
licenses
Gets the list of defined licenses.- Returns:
- the list of defined licenses.
-
pad
Creates a string of spaces of the specified length.- Parameters:
length
- the length of the string.- Returns:
- a string of spaces of the specified length.
-