public class CliOutputSettings extends Object
help output.| Modifier and Type | Field and Description |
|---|---|
private String |
lineSeparator |
private Locale |
locale |
private static int |
MIN_WIDTH
The minimum value for
width. |
private NlsTemplateResolver |
templateResolver |
private int |
width |
| Constructor and Description |
|---|
CliOutputSettings()
The constructor.
|
CliOutputSettings(int width)
The constructor.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getLineSeparator() |
Locale |
getLocale()
This method gets the
Locale used to nationalize the output. |
NlsTemplateResolver |
getTemplateResolver() |
int |
getWidth()
This method gets the width of the
help-output in
characters per line. |
void |
setLineSeparator(String lineSeparator) |
void |
setLocale(Locale locale)
This method sets the
locale to use. |
void |
setTemplateResolver(NlsTemplateResolver templateResolver) |
void |
setWidth(int width) |
private static final int MIN_WIDTH
width.private int width
private String lineSeparator
private Locale locale
private NlsTemplateResolver templateResolver
public CliOutputSettings()
public CliOutputSettings(int width)
width - is the width.public int getWidth()
help-output in
characters per line.public void setWidth(int width)
width - is the width to set.public String getLineSeparator()
public void setLineSeparator(String lineSeparator)
lineSeparator - is the lineSeparator to setpublic Locale getLocale()
Locale used to nationalize the output. By default Locale.getDefault() ist
used.Locale.public void setLocale(Locale locale)
locale to use.locale - is the locale to setpublic NlsTemplateResolver getTemplateResolver()
public void setTemplateResolver(NlsTemplateResolver templateResolver)
templateResolver - is the templateResolver to setCopyright © 2001–2016 mmm-Team. All rights reserved.