Package org.apache.rat.help
Class AbstractHelp
java.lang.Object
org.apache.rat.help.AbstractHelp
The base class to perform Help processing for programs.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassProvides help for formatting text. -
Field Summary
FieldsModifier and TypeFieldDescriptionFunction to format deprecated displaystatic intThe number of chars to indent output with.static intThe width of the help report in chars.protected AbstractHelp.RatHelpFormatterThe help formatter for this instanceprotected VersionInfoThe version info for this instance -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringcreatePadding(int len)Create a padding.static StringCreate a section header for the output.
-
Field Details
-
HELP_WIDTH
public static final int HELP_WIDTHThe width of the help report in chars.- See Also:
- Constant Field Values
-
HELP_PADDING
public static final int HELP_PADDINGThe number of chars to indent output with.- See Also:
- Constant Field Values
-
helpFormatter
The help formatter for this instance -
versionInfo
The version info for this instance -
DEPRECATED_MSG
Function to format deprecated display
-
-
Constructor Details
-
AbstractHelp
protected AbstractHelp()Base class to perform help output.
-
-
Method Details
-
createPadding
Create a padding.- Parameters:
len- The length of the padding in characters.- Returns:
- a string with len blanks.
-
header
Create a section header for the output.- Parameters:
txt- the text to put in the header.- Returns:
- the Header string.
-