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
public abstract class AbstractRFC3986Format extends Object implements Format
AbstractFormat
for RFC 3986.
-
-
Constructor Summary
Constructors Constructor Description AbstractRFC3986Format()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected boolean
handleException(URISyntaxException e)
Determines if the uri matches the format.boolean
matches(ExecutionContext executionContext, String value)
Determines if the value matches the format.protected abstract boolean
validate(URI uri)
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
-
-
-
-
Method Detail
-
matches
public final boolean matches(ExecutionContext executionContext, String value)
Description copied from interface:Format
Determines if the value matches the format.This should be implemented for string node types.
-
validate
protected abstract boolean validate(URI uri)
Determines if the uri matches the format.- Parameters:
uri
- the uri to match- Returns:
- true if matches
-
handleException
protected boolean handleException(URISyntaxException e)
Determines if the uri matches the format.- Parameters:
e
- the URISyntaxException- Returns:
- false if it does not match
-
-