Package com.networknt.schema.format
Class IPv6Format
- java.lang.Object
-
- com.networknt.schema.format.IPv6Format
-
-
Field Summary
Fields Modifier and Type Field Description static PatternPATTERNstatic StringPATTERN_VALUE
-
Constructor Summary
Constructors Constructor Description IPv6Format()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetMessageKey()Gets the message key to use for the message.StringgetName()Gets the format name.booleanmatches(ExecutionContext executionContext, String value)Determines if the value matches the format.
-
-
-
Field Detail
-
PATTERN_VALUE
public static final String PATTERN_VALUE
- See Also:
- Constant Field Values
-
PATTERN
public static final Pattern PATTERN
-
-
Method Detail
-
matches
public boolean matches(ExecutionContext executionContext, String value)
Description copied from interface:FormatDetermines if the value matches the format.This should be implemented for string node types.
-
getMessageKey
public 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
-
-