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 TypeClassDescriptionclass
Provides help for formatting text. -
Field Summary
FieldsModifier and TypeFieldDescriptionFunction to format deprecated displaystatic final int
The number of chars to indent output with.static final int
The width of the help report in chars.protected final AbstractHelp.RatHelpFormatter
The help formatter for this instanceprotected final VersionInfo
The version info for this instance -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic String
createPadding
(int len) Create a padding.static String
Create 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:
-
HELP_PADDING
public static final int HELP_PADDINGThe number of chars to indent output with.- See Also:
-
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.
-