Package com.networknt.schema
Interface Format
-
- All Known Implementing Classes:
AbstractFormat,AbstractRFC3986Format,BaseFormat,DateFormat,DurationFormat,EmailFormat,IdnEmailFormat,IdnHostnameFormat,IriFormat,IriReferenceFormat,PatternFormat,RegexFormat,TimeFormat,UriFormat,UriReferenceFormat
public interface FormatUsed to implement the various formats for the format keyword.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringgetErrorMessageDescription()StringgetName()booleanmatches(ExecutionContext executionContext, String value)Determines if the value matches the format.
-
-
-
Method Detail
-
getName
String getName()
- Returns:
- the format name as referred to in a json schema format node.
-
matches
boolean matches(ExecutionContext executionContext, String value)
Determines if the value matches the format.- Parameters:
executionContext- the execution contextvalue- to match- Returns:
- true if matches
-
getErrorMessageDescription
String getErrorMessageDescription()
-
-