|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.stripes.format.ObjectFormatter
public class ObjectFormatter
This is the default formatter. It simply calls String.valueOf() on the object being formatted.
Constructor Summary | |
---|---|
ObjectFormatter()
|
Method Summary | |
---|---|
String |
format(Object input)
Converts the supplied parameter to a string using String.valueOf(). |
void |
init()
Does nothing. |
void |
setFormatPattern(String formatPattern)
Does nothing. |
void |
setFormatType(String formatType)
Does nothing. |
void |
setLocale(Locale locale)
Does nothing. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ObjectFormatter()
Method Detail |
---|
public String format(Object input)
format
in interface Formatter<Object>
input
- an object of a type that the formatter knows how to format
public void init()
init
in interface Formatter<Object>
public void setFormatPattern(String formatPattern)
setFormatPattern
in interface Formatter<Object>
public void setFormatType(String formatType)
setFormatType
in interface Formatter<Object>
public void setLocale(Locale locale)
setLocale
in interface Formatter<Object>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |