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
AbstractFormat
for RFC 3986.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
Determines if the uri matches the format.final boolean
matches
(ExecutionContext executionContext, String value) Determines if the value matches the format.protected abstract boolean
Determines if the uri matches the format.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.networknt.schema.Format
getErrorMessageDescription, getMessageKey, getName, matches, matches, matches, validate
-
Constructor Details
-
AbstractRFC3986Format
public AbstractRFC3986Format()
-
-
Method Details
-
matches
Description copied from interface:Format
Determines 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
-