public class StringFormatter extends Object implements Formatter<String>
HTML.encodeTags(String)
method to prevent pollution
of the generated HTML.Constructor and Description |
---|
StringFormatter()
Create a new string formatter.
|
Modifier and Type | Method and Description |
---|---|
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.
|
public String format(String value)
Formatter
public String parseString(String value)
Formatter
parseString
in interface Formatter<String>
value
- The string to parse