Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.mentawai.converter
Class LocaleConverter  view LocaleConverter download LocaleConverter.java

java.lang.Object
  extended byorg.mentawai.converter.LocaleConverter
All Implemented Interfaces:
Converter
Direct Known Subclasses:
DateConverter

public abstract class LocaleConverter
extends java.lang.Object
implements Converter

A converter that needs to know the user locale to perform the conversion. You should override this class to implement your own converters.


Constructor Summary
LocaleConverter()
           
 
Method Summary
abstract  java.lang.Object convert(java.lang.Object value, java.util.Locale loc)
          Convert an object to another one using the use locale.
 java.lang.Object convert(java.lang.String field, org.mentawai.core.Action action)
          Converts a input field from this action.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LocaleConverter

public LocaleConverter()
Method Detail

convert

public abstract java.lang.Object convert(java.lang.Object value,
                                         java.util.Locale loc)
                                  throws ConversionException
Convert an object to another one using the use locale.


convert

public java.lang.Object convert(java.lang.String field,
                                org.mentawai.core.Action action)
                         throws ConversionException
Description copied from interface: Converter
Converts a input field from this action.

Specified by:
convert in interface Converter