Package com.networknt.schema.format
Class AbstractRFC3986Format
- java.lang.Object
-
- com.networknt.schema.format.BaseFormat
-
- com.networknt.schema.format.AbstractFormat
-
- com.networknt.schema.format.AbstractRFC3986Format
-
- All Implemented Interfaces:
Format
- Direct Known Subclasses:
IriFormat
,IriReferenceFormat
,UriFormat
,UriReferenceFormat
public abstract class AbstractRFC3986Format extends AbstractFormat
AbstractFormat
for RFC 3986.
-
-
Constructor Summary
Constructors Constructor Description AbstractRFC3986Format(String name, String errorMessageDescription)
Constructor.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description boolean
matches(String value)
protected abstract boolean
validate(URI uri)
Determines if the uri matches the format.-
Methods inherited from class com.networknt.schema.format.AbstractFormat
matches
-
Methods inherited from class com.networknt.schema.format.BaseFormat
getErrorMessageDescription, getName
-
-
-
-
Method Detail
-
matches
public final boolean matches(String value)
- Specified by:
matches
in classAbstractFormat
-
validate
protected abstract boolean validate(URI uri)
Determines if the uri matches the format.- Parameters:
uri
- the uri to match- Returns:
- true if matches
-
-