org.formproc.conversion
Class IntegerConverter

java.lang.Object
  |
  +--org.formproc.conversion.AbstractTypeConverter
        |
        +--org.formproc.conversion.IntegerConverter
All Implemented Interfaces:
TypeConverter

public class IntegerConverter
extends AbstractTypeConverter

TypeConverter which converts to an Integer. The data objects toString() method will be used to convert the data object to a String first.

Author:
Anthony Eden

Constructor Summary
IntegerConverter()
           
 
Method Summary
 java.lang.Object convert(java.lang.Object data, java.util.Locale locale)
          Convert the given data object to an Integer.
 
Methods inherited from class org.formproc.conversion.AbstractTypeConverter
loadConfiguration
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IntegerConverter

public IntegerConverter()
Method Detail

convert

public java.lang.Object convert(java.lang.Object data,
                                java.util.Locale locale)
                         throws java.lang.Exception
Convert the given data object to an Integer.

Parameters:
data - The data
locale - The Locale
Returns:
The resulting object
Throws:
java.lang.Exception


Copyright (c) 2001-2003 Anthony Eden. All Rights Reserved.