com.espertech.esperio.ext
Class BasicTypeCoercerDateFormat

java.lang.Object
  extended by com.espertech.esperio.csv.AbstractTypeCoercer
      extended by com.espertech.esperio.csv.BasicTypeCoercer
          extended by com.espertech.esperio.ext.BasicTypeCoercerDateFormat

public class BasicTypeCoercerDateFormat
extends BasicTypeCoercer

Date format coercion.


Field Summary
 
Fields inherited from class com.espertech.esperio.csv.AbstractTypeCoercer
log, propertyConstructors
 
Constructor Summary
BasicTypeCoercerDateFormat()
           
 
Method Summary
 void addDateFormat(java.lang.String propertyName, java.text.DateFormat df)
          Add a date format.
 java.lang.Object coerce(java.lang.String property, java.lang.String source)
          Convert a value.
 
Methods inherited from class com.espertech.esperio.csv.AbstractTypeCoercer
setPropertyTypes
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BasicTypeCoercerDateFormat

public BasicTypeCoercerDateFormat()
Method Detail

coerce

public java.lang.Object coerce(java.lang.String property,
                               java.lang.String source)
                        throws java.lang.Exception
Description copied from class: AbstractTypeCoercer
Convert a value.

Overrides:
coerce in class BasicTypeCoercer
Parameters:
property - property name
source - value to convert
Returns:
object value
Throws:
java.lang.Exception - if coercion failed

addDateFormat

public void addDateFormat(java.lang.String propertyName,
                          java.text.DateFormat df)
Add a date format.

Parameters:
propertyName - property to add
df - the date format

© 2006-2016 EsperTech Inc.
All rights reserved.
Visit us at espertech.com