public class DateTransformer extends Object implements FunctionTransformer, Serializable
format| Constructor and Description |
|---|
DateTransformer() |
| Modifier and Type | Method and Description |
|---|---|
Number |
getAddSeconds()
If specified will Add/Subtract (if <0) the seconds to the output Date time
|
DateFormat |
getFormat()
Expected output
DateFormat |
DateFormat |
getInputFormat()
If input is a String type then this must be supplied else can be null
DateFormat |
Class |
getOutputType()
By default will generate a
Date object but one can choose between Date, Calendar and String types |
void |
setAddSeconds(Number addSeconds)
If specified will Add/Subtract (if <0) the seconds to the output Date time
|
void |
setFormat(DateFormat format)
Expected output
DateFormat |
void |
setInputFormat(DateFormat inputFormat)
If input is a String type then this must be supplied else can be null
DateFormat |
void |
setOutputType(Class outputType)
By default will generate a
Date object but one can choose between Date, Calendar and String types |
Object |
transform(Object input) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitapplypublic Object transform(Object input)
transform in interface org.apache.commons.collections.Transformerpublic DateFormat getFormat()
DateFormatpublic void setFormat(DateFormat format)
DateFormatpublic DateFormat getInputFormat()
DateFormatpublic void setInputFormat(DateFormat inputFormat)
DateFormatpublic Class getOutputType()
Date object but one can choose between Date, Calendar and String typespublic void setOutputType(Class outputType)
Date object but one can choose between Date, Calendar and String typespublic Number getAddSeconds()
public void setAddSeconds(Number addSeconds)
Copyright © 2018. All rights reserved.