|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.mmm.util.cli.base.AbstractCliParser.CliOptionHelpInfo
protected static class AbstractCliParser.CliOptionHelpInfo
This inner class holds the help information for a single CliOption.
| Field Summary | |
|---|---|
private int |
length
The maximum length of all syntax lines of this info. |
private int |
lineIndex
The current index in the buffer for syntax. |
private int |
lineLength
The current maximum line index. |
private String |
operand
Localized
message for operand. |
private CliOptionContainer |
option
The actual option. |
private String |
syntax
The syntax of the option. |
| Constructor Summary | |
|---|---|
AbstractCliParser.CliOptionHelpInfo(CliOptionContainer option,
CliParserDependencies dependencies,
CliOutputSettings settings)
The constructor. |
|
| Method Summary | |
|---|---|
private void |
append(StringBuilder syntaxBuilder,
String text,
int maxLength,
CliOutputSettings settings)
This method appends a single option to the syntax. |
int |
getLength()
|
String |
getOperand()
|
String |
getSyntax()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private final CliOptionContainer option
private final String syntax
private final String operand
Localized
message for operand.
private final int length
private int lineIndex
syntax.
private int lineLength
| Constructor Detail |
|---|
public AbstractCliParser.CliOptionHelpInfo(CliOptionContainer option,
CliParserDependencies dependencies,
CliOutputSettings settings)
option - is the CliOptionContainer.dependencies - are the CliParserDependencies.settings - are the CliOutputSettings.| Method Detail |
|---|
private void append(StringBuilder syntaxBuilder,
String text,
int maxLength,
CliOutputSettings settings)
lineLength and lineIndex.
syntaxBuilder - is the buffer used to build
the syntax.text - is the text to append.maxLength - is the maximum length allowed for a single line.settings - are the CliOutputSettings.public int getLength()
public String getSyntax()
public String getOperand()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||