public class CompositeFormat extends java.lang.Object implements LayoutFormatter
| Constructor and Description |
|---|
CompositeFormat()
If called with this constructor, this formatter does nothing.
|
CompositeFormat(LayoutFormatter[] formatters) |
CompositeFormat(LayoutFormatter first,
LayoutFormatter second) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
format(java.lang.String fieldText)
Failure Mode:
|
public CompositeFormat()
public CompositeFormat(LayoutFormatter first, LayoutFormatter second)
public CompositeFormat(LayoutFormatter[] formatters)
public java.lang.String format(java.lang.String fieldText)
LayoutFormatterFormatters should be robust in the sense that they always return some relevant string.
If the formatter can detect an invalid input it should return the original string otherwise it may simply return a wrong output.
format in interface LayoutFormatterfieldText - The text to layout.