Package ca.phon.formatter
Class StringFormatter
java.lang.Object
ca.phon.formatter.StringFormatter
@FormatterType(java.lang.String.class)
public class StringFormatter
extends Object
implements Formatter<Object>
Basic formatter which simply returns the given string
value.
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
StringFormatter
public StringFormatter()
-
-
Method Details
-
format
Description copied from interface:Formatter
Convert the given object into a formatted String. -
parse
Description copied from interface:Formatter
Parse the given string into a new object instance- Specified by:
parse
in interfaceFormatter<Object>
- Returns:
- parsed object
- Throws:
ParseException
- if there was a problem parsing the given text
-