public class DateTransformer extends DateTransformerBase
A specialized transformer that transforms strings into date objects.
Most of the required functionality is already implemented by the base class.
This class only creates an appropriate DateFormat
object that
supports parsing dates.
For the documentation of the supported properties and error messages refer to the super class.
PROP_AFTER, PROP_BEFORE, PROP_EQUAL, PROP_LENIENT, PROP_REFERENCE_DATE, PROP_STYLE
Constructor and Description |
---|
DateTransformer() |
Modifier and Type | Method and Description |
---|---|
protected DateFormat |
createFormat(Locale locale,
int style,
org.apache.commons.configuration.Configuration config)
Returns the
DateFormat to be used by this transformer. |
errorResult, getDefaultReferenceDate, getReferenceDate, getReferenceDateProperty, getStyle, initializeFormat, isAfter, isBefore, isDateValid, isEqual, isLenient, isValid, setAfter, setBefore, setEqual, setLenient, setReferenceDate, setStyle, transform, transformDate, transformSqlDate, transformToDate, transformToString, updateDatePart, updateTimePart
protected DateFormat createFormat(Locale locale, int style, org.apache.commons.configuration.Configuration config)
DateFormat
to be used by this transformer.
This implementation returns a format object for processing dates.createFormat
in class DateTransformerBase
locale
- the localestyle
- the style to be usedconfig
- the configuration with the propertiesCopyright © 2016 The JGUIraffe Team. All rights reserved.