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 classDateTimeFormat.EthloUses etho.static classDateTimeFormat.JavaTimeOffsetDateTimeUses java time.
-
Field Summary
Fields Modifier and Type Field Description private static booleanETHLO_PRESENTprivate static org.slf4j.Loggerloggerprivate static java.util.function.Predicate<java.lang.String>VALIDATE
-
Constructor Summary
Constructors Constructor Description DateTimeFormat()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetMessageKey()Gets the message key to use for the message.java.lang.StringgetName()Gets the format name.private static booleanisValid(java.lang.String value)booleanmatches(ExecutionContext executionContext, java.lang.String value)Determines if the value matches the format.
-
-
-
Method Detail
-
getName
public java.lang.String getName()
Description copied from interface:FormatGets the format name.
-
getMessageKey
public java.lang.String getMessageKey()
Description copied from interface:FormatGets 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:
getMessageKeyin interfaceFormat- Returns:
- the message key
-
matches
public boolean matches(ExecutionContext executionContext, java.lang.String value)
Description copied from interface:FormatDetermines if the value matches the format.This should be implemented for string node types.
-
isValid
private static boolean isValid(java.lang.String value)
-
-