org.outerj.xreporter.report.definition
Class DataTypeValueFormatter

java.lang.Object
  extended byorg.outerj.xreporter.report.definition.DataTypeValueFormatter
All Implemented Interfaces:
ValueFormatter

public class DataTypeValueFormatter
extends java.lang.Object
implements ValueFormatter

Implementation of ValueFormatter (from the grouping package) that uses xReporter datatypes for formatting.


Field Summary
protected  DataType dataType
           
protected  ResourceManager resourceManager
           
 
Constructor Summary
DataTypeValueFormatter(DataType dataType, ResourceManager resourceManager)
           
 
Method Summary
 java.lang.String format(java.lang.Object object, java.util.Locale locale)
          Formats an object to a string according to a certain Locale.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

dataType

protected DataType dataType

resourceManager

protected ResourceManager resourceManager
Constructor Detail

DataTypeValueFormatter

public DataTypeValueFormatter(DataType dataType,
                              ResourceManager resourceManager)
Method Detail

format

public java.lang.String format(java.lang.Object object,
                               java.util.Locale locale)
Description copied from interface: ValueFormatter
Formats an object to a string according to a certain Locale.

Specified by:
format in interface ValueFormatter