public static class DXPParameterDefinition.FormatInfo
extends java.lang.Object
Constructor and Description |
---|
FormatInfo(java.lang.Iterable<? extends DXPParameterDefinition<?>> pars)
Construct the fixed-width character format information associated with a list of parameter definitions.
|
Modifier and Type | Method and Description |
---|---|
void |
append(java.lang.StringBuilder builder,
int width,
int indent)
Append the parameter information in tabular form to a StringBuilder.
|
int |
getDefaultValueMaxWidth()
Get the width required to display the default value on a single line.
|
int |
getDefaultValueMinWidth()
Get the minimum width required to display the default value whilst splitting lines on whitespace only.
|
int |
getDescriptionMaxWidth()
Get the width required to display the description on a single line.
|
int |
getDescriptionMinWidth()
Get the width required to display the description whilst splitting lines on whitespace only.
|
int |
getMaxWidth(int seperation)
Get the maximum width required to display all three columns.
|
int |
getMinWidth(int seperation)
Get the minimum width required to display all three columns.
|
int |
getNameMaxWidth()
Get the width required to display the name on a single line.
|
int |
getNameMinWidth()
Get the minimum width required to display the name whilst splitting lines on whitespace only.
|
java.lang.String |
toString()
Overrides the default
equals method. |
java.lang.String |
toString(int width,
int indent)
Returns a formatted String representation of parameters.
|
public FormatInfo(java.lang.Iterable<? extends DXPParameterDefinition<?>> pars)
pars
- The list of parameter definitions.public int getNameMinWidth()
public int getNameMaxWidth()
public int getDefaultValueMinWidth()
public int getDefaultValueMaxWidth()
public int getDescriptionMinWidth()
public int getDescriptionMaxWidth()
public int getMinWidth(int seperation)
seperation
- The separation between the columns.public int getMaxWidth(int seperation)
seperation
- The separation between the columns.public void append(java.lang.StringBuilder builder, int width, int indent)
builder
- The target StringBuilder.width
- The maximum width of the table (not including an indent).indent
- The number of spaces to prefix each output line by.public java.lang.String toString(int width, int indent)
width
- the maximum width of the outputindent
- an indent for the output stringpublic java.lang.String toString()
equals
method.
Implemented as a call to DXPParameterDefinition.FormatInfo.toString(int, int)
with width 80 and indent 0
toString
in class java.lang.Object
DXPParameterDefinition.FormatInfo.toString(int, int)