public class RFC3339DateTimeAttribute extends AbstractFormatAttribute
DateTimeFormatter
for date and time format defined in RFC3339.
This is backwards incompat with the original DateTimeAttribute. It will become the default in the future
to use it currently you need to:
Library library = DraftV4Library.get().thaw()
.addFormatAttribute("date-time", RFC3339DateTimeAttribute.getInstance())
.freeze();
Then follow the rest of the steps in example 8 to hook it into your flow.Modifier and Type | Method and Description |
---|---|
static FormatAttribute |
getInstance() |
void |
validate(ProcessingReport report,
MessageBundle bundle,
FullData data)
Validate the instance against this format attribute
|
newMsg, supportedTypes
public static FormatAttribute getInstance()
public void validate(ProcessingReport report, MessageBundle bundle, FullData data) throws ProcessingException
FormatAttribute
report
- the report to usebundle
- the message bundle to usedata
- the validation dataProcessingException
- an exception occurs (normally, never for a
format attribute)