oracle.cabo.ui.validate
Interface Formatter
- All Known Implementing Classes:
- ColorValidater, WMLPatternValidater, ByteLengthValidater, DecimalValidater, DateValidater
- public interface Formatter
Interface for parsing Strings into objects.
Method Summary |
java.lang.String |
formatObject(java.lang.Object value, LocaleContext localeContext)
Formats the value into a String in a potentially Locale-specific manner. |
java.lang.Object |
parseString(java.lang.String value, LocaleContext localeContext)
Parses the value String and returns the Object result for this validater. |
parseString
public java.lang.Object parseString(java.lang.String value,
LocaleContext localeContext)
throws java.text.ParseException
- Parses the value String and returns the Object result for this validater. If parsing fails a ParseException with the location where parsing failed is thrown.
This method will commonly be called by client code on the server to validate submitted form results and convert the results into a more easily programmed type.
formatObject
public java.lang.String formatObject(java.lang.Object value,
LocaleContext localeContext)
- Formats the value into a String in a potentially Locale-specific manner.