de.innovationgate.utils
public class FormattingChain extends java.lang.Object implements ObjectFormatter
Constructor and Description |
---|
FormattingChain() |
Modifier and Type | Method and Description |
---|---|
void |
addFormatter(ObjectFormatter formatter)
Adds a formatter to the chain.
|
java.lang.String |
format(java.lang.Object obj)
Formats an object to a string
|
java.util.List |
getErrors()
Returns a List of
FormattingException objects that represent the errors
that occured on the last formatting operation. |
public void addFormatter(ObjectFormatter formatter)
formatter
- public java.lang.String format(java.lang.Object obj)
ObjectFormatter
format
in interface ObjectFormatter
obj
- The objectFormattingException
ObjectFormatter.format(Object)
public java.util.List getErrors()
FormattingException
objects that represent the errors
that occured on the last formatting operation.