org.apache.servicemix.components.util
Class DateConverter

java.lang.Object
  extended by org.apache.servicemix.components.util.DateConverter
All Implemented Interfaces:
ContentConverter

public class DateConverter
extends java.lang.Object
implements ContentConverter

Column converter for SimpleFlatFileMarshaler that converts date contents using defined date formats

Since:
3.2
Author:
Mayrbaeurl

Field Summary
static java.lang.String DEFAULT_OUTPUT_FORMATSTRING
           
 
Constructor Summary
DateConverter(java.text.DateFormat inputformat)
           
DateConverter(java.text.DateFormat inputformat, java.text.DateFormat outputformat)
           
DateConverter(java.lang.String inputformat)
           
DateConverter(java.lang.String inputformat, java.lang.String outputformat)
           
 
Method Summary
 java.lang.String convertToFlatFileContent(java.lang.String contents)
          Converts the contents of a XML element to the contents of the flat file column
 java.lang.String convertToXml(java.lang.String contents)
          Converts the contents of column to the contents of the XML element
 boolean isBlankValueIsNull()
           
 void setBlankValueIsNull(boolean blankValueIsNull)
           
 void setInputformat(java.lang.String format)
           
 void setOutpuformat(java.lang.String format)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_OUTPUT_FORMATSTRING

public static final java.lang.String DEFAULT_OUTPUT_FORMATSTRING
See Also:
Constant Field Values
Constructor Detail

DateConverter

public DateConverter(java.text.DateFormat inputformat)

DateConverter

public DateConverter(java.text.DateFormat inputformat,
                     java.text.DateFormat outputformat)

DateConverter

public DateConverter(java.lang.String inputformat)

DateConverter

public DateConverter(java.lang.String inputformat,
                     java.lang.String outputformat)
Method Detail

convertToXml

public java.lang.String convertToXml(java.lang.String contents)
Description copied from interface: ContentConverter
Converts the contents of column to the contents of the XML element

Specified by:
convertToXml in interface ContentConverter
Parameters:
contents - contents of the flat file column
Returns:
contents for the XML element

convertToFlatFileContent

public java.lang.String convertToFlatFileContent(java.lang.String contents)
Description copied from interface: ContentConverter
Converts the contents of a XML element to the contents of the flat file column

Specified by:
convertToFlatFileContent in interface ContentConverter
Parameters:
contents - contents of the XML element
Returns:
contents for the flat file

setInputformat

public final void setInputformat(java.lang.String format)

setOutpuformat

public final void setOutpuformat(java.lang.String format)

isBlankValueIsNull

public boolean isBlankValueIsNull()

setBlankValueIsNull

public void setBlankValueIsNull(boolean blankValueIsNull)


Copyright © 2005-2011 Apache Software Foundation. All Rights Reserved.