public abstract class AbstractDateFormatAttribute extends AbstractFormatAttribute
Joda Time is used for
date and time parsing: it can handle all defined formats, and catches more
errors than the standard JDK's SimpleDateFormat does.
Furthermore (and more importantly), unlike SimpleDateFormat, Joda
Time's DateTimeFormatter is thread-safe!
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractDateFormatAttribute(String fmt,
String format) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract org.joda.time.format.DateTimeFormatter |
getFormatter() |
void |
validate(ProcessingReport report,
MessageBundle bundle,
FullData data)
Validate the instance against this format attribute
|
newMsg, supportedTypesprotected abstract org.joda.time.format.DateTimeFormatter getFormatter()
public final void validate(ProcessingReport report, MessageBundle bundle, FullData data) throws ProcessingException
FormatAttributereport - the report to usebundle - the message bundle to usedata - the validation dataProcessingException - an exception occurs (normally, never for a
format attribute)