|
2.17.2: 2011-06-17 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.basedb.clients.web.formatter.StringFormatter
public class StringFormatter
Format a string for output on a web page. This means that the string is
encoded by the HTML.encodeTags(String)
method to prevent pollution
of the generated HTML.
Constructor Summary | |
---|---|
StringFormatter()
Create a new string formatter. |
Method Summary | |
---|---|
String |
format(String value)
Format a value by converting it to a string. |
String |
parseString(String value)
Parse a string and return a value of the correct type. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StringFormatter()
Method Detail |
---|
public String format(String value)
Formatter
format
in interface Formatter<String>
value
- The value to format
public String parseString(String value)
Formatter
parseString
in interface Formatter<String>
value
- The string to parse
|
2.17.2: 2011-06-17 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |