Package com.networknt.schema.format
Class DateTimeFormat
- java.lang.Object
-
- com.networknt.schema.format.DateTimeFormat
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
DateTimeFormat.Ethlo
Uses etho.static class
DateTimeFormat.JavaTimeOffsetDateTime
Uses java time.
-
Constructor Summary
Constructors Constructor Description DateTimeFormat()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getMessageKey()
Gets the message key to use for the message.String
getName()
Gets the format name.boolean
matches(ExecutionContext executionContext, String value)
Determines if the value matches the format.
-
-
-
Method Detail
-
getMessageKey
public String 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
public boolean matches(ExecutionContext executionContext, String value)
Description copied from interface:Format
Determines if the value matches the format.This should be implemented for string node types.
-
-