Package com.networknt.schema.format
Class DateTimeFormat
java.lang.Object
com.networknt.schema.format.DateTimeFormat
- All Implemented Interfaces:
Format
Format for date-time.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Uses etho.static class
Uses java time. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final boolean
private static final org.slf4j.Logger
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the message key to use for the message.getName()
Gets the format name.private static boolean
boolean
matches
(ExecutionContext executionContext, String value) Determines if the value matches the format.
-
Field Details
-
logger
private static final org.slf4j.Logger logger -
ETHLO_PRESENT
private static final boolean ETHLO_PRESENT -
VALIDATE
-
-
Constructor Details
-
DateTimeFormat
public DateTimeFormat()
-
-
Method Details
-
getName
Description copied from interface:Format
Gets the format name. -
getMessageKey
Description copied from interface:Format
Gets the message key to use for the message.See jsv-messages.properties.
The following are the arguments.
{0} The instance location
{1} The format name
{2} The error message description
{3} The input value- Specified by:
getMessageKey
in interfaceFormat
- Returns:
- the message key
-
matches
Description copied from interface:Format
Determines if the value matches the format.This should be implemented for string node types.
-
isValid
-