Package com.networknt.schema.format
Class EmailFormat
java.lang.Object
com.networknt.schema.format.EmailFormat
- All Implemented Interfaces:
Format
Format for email.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the message key to use for the message.getName()Gets the format name.booleanmatches(ExecutionContext executionContext, String value) Determines if the value matches the format.
-
Constructor Details
-
EmailFormat
public EmailFormat() -
EmailFormat
-
-
Method Details
-
matches
Description copied from interface:FormatDetermines if the value matches the format.This should be implemented for string node types.
-
getName
Description copied from interface:FormatGets the format name. -
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 format name
{1} The input valueNote that the default localized messages do not use the input value.
- Specified by:
getMessageKeyin interfaceFormat- Returns:
- the message key
-