com.projectnine.csvmapper
Class NoopCsvFieldFormatter

java.lang.Object
  extended by com.projectnine.csvmapper.NoopCsvFieldFormatter
All Implemented Interfaces:
CsvFieldFormatter

public class NoopCsvFieldFormatter
extends java.lang.Object
implements CsvFieldFormatter

This returns whatever it is given.

Author:
robweber

Constructor Summary
NoopCsvFieldFormatter()
           
 
Method Summary
 java.lang.String formatObject(java.lang.Object object)
          Converts an Object to a String.
 java.lang.Object formatString(java.lang.String rawPropertyValue)
          I suppose that if the rawPropertyValue is null, an Exception will be thrown.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NoopCsvFieldFormatter

public NoopCsvFieldFormatter()
Method Detail

formatString

public java.lang.Object formatString(java.lang.String rawPropertyValue)
I suppose that if the rawPropertyValue is null, an Exception will be thrown.

Specified by:
formatString in interface CsvFieldFormatter
Returns:
An Object representation of the given String.

formatObject

public java.lang.String formatObject(java.lang.Object object)
Description copied from interface: CsvFieldFormatter
Converts an Object to a String.

Specified by:
formatObject in interface CsvFieldFormatter
Parameters:
object - The Object to convert into a String.
Returns:
A String representation of the given Object.


Copyright © 2008. All Rights Reserved.