com.projectnine.csvmapper
Class CurrentXmlGregorianCalendarFieldFormatter

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

public class CurrentXmlGregorianCalendarFieldFormatter
extends java.lang.Object
implements CsvFieldFormatter

Convert a String into a XMLGregorianCalendar.

Author:
robweber

Constructor Summary
CurrentXmlGregorianCalendarFieldFormatter()
           
 
Method Summary
 java.lang.String formatObject(java.lang.Object object)
          Converts an Object to a String.
 java.lang.Object formatString(java.lang.String rawPropertyValue)
          If conversion fails due to a DatatypeConfigurationException, just return null.
 void setDateFormat(java.lang.String dateFormat)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CurrentXmlGregorianCalendarFieldFormatter

public CurrentXmlGregorianCalendarFieldFormatter()
Method Detail

formatString

public java.lang.Object formatString(java.lang.String rawPropertyValue)
If conversion fails due to a DatatypeConfigurationException, just return null. If conversion fails due to any other error that raises an Exception, the Exception is 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.

setDateFormat

public void setDateFormat(java.lang.String dateFormat)
Parameters:
dateFormatter - the dateFormatter to set


Copyright © 2008. All Rights Reserved.