protected static class AbstractCliParser.CliOptionHelpInfo extends Object
CliOption
.Modifier and Type | Field and Description |
---|---|
private int |
length
The maximum length of all syntax lines of this info.
|
private String |
operand
Localized message for operand . |
private CliOptionContainer |
option
The actual option.
|
private String |
syntax
The syntax of the option.
|
Constructor and Description |
---|
CliOptionHelpInfo(CliOptionContainer option,
CliParserDependencies dependencies,
CliOutputSettings settings)
The constructor.
|
Modifier and Type | Method and Description |
---|---|
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() |
private final CliOptionContainer option
private final String syntax
private final String operand
Localized message
for operand
.private final int length
public CliOptionHelpInfo(CliOptionContainer option, CliParserDependencies dependencies, CliOutputSettings settings)
option
- is the CliOptionContainer
.dependencies
- are the CliParserDependencies
.settings
- are the CliOutputSettings
.private void append(StringBuilder syntaxBuilder, String text, int maxLength, CliOutputSettings settings)
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()
Copyright © 2001–2016 mmm-Team. All rights reserved.