Oracle UIX API Reference
Release 2.1.22.0.0
B12196-01

oracle.cabo.ui.validate
Interface Formatter

All Known Implementing Classes:
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.
 

Method Detail

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.

Oracle UIX API Reference
Release 2.1.22.0.0
B12196-01

Copyright © 2002,2003, Oracle. All Rights Reserved.