Package com.networknt.schema.format
Class AbstractRFC3986Format
java.lang.Object
com.networknt.schema.format.AbstractRFC3986Format
- All Implemented Interfaces:
Format
- Direct Known Subclasses:
IriFormat,IriReferenceFormat,UriFormat,UriReferenceFormat
Format for RFC 3986 Uniform Resource Identifier (URI): Generic Syntax.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanDetermines if the uri matches the format.final booleanmatches(ExecutionContext executionContext, String value) Determines if the value matches the format.protected abstract booleanDetermines if the uri matches the format.
-
Constructor Details
-
AbstractRFC3986Format
public AbstractRFC3986Format()
-
-
Method Details
-
matches
Description copied from interface:FormatDetermines if the value matches the format.This should be implemented for string node types.
-
validate
Determines if the uri matches the format.- Parameters:
uri- the uri to match- Returns:
- true if matches
-
handleException
Determines if the uri matches the format.- Parameters:
e- the URISyntaxException- Returns:
- false if it does not match
-