Package com.networknt.schema.format
Class IriReferenceFormat
- java.lang.Object
-
- com.networknt.schema.format.AbstractRFC3986Format
-
- com.networknt.schema.format.IriReferenceFormat
-
- All Implemented Interfaces:
Format
public class IriReferenceFormat extends AbstractRFC3986Format
Format for iri-reference.
-
-
Constructor Summary
Constructors Constructor Description IriReferenceFormat()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetMessageKey()Gets the message key to use for the message.StringgetName()Gets the format name.protected booleanvalidate(URI uri)Determines if the uri matches the format.-
Methods inherited from class com.networknt.schema.format.AbstractRFC3986Format
handleException, matches
-
-
-
-
Method Detail
-
validate
protected boolean validate(URI uri)
Description copied from class:AbstractRFC3986FormatDetermines if the uri matches the format.- Specified by:
validatein classAbstractRFC3986Format- Parameters:
uri- the uri to match- Returns:
- true if matches
-
getName
public String getName()
Description copied from interface:FormatGets the format name.- Returns:
- the format name as referred to in a json schema format node.
-
getMessageKey
public String getMessageKey()
Description copied from interface:FormatGets the message key to use for the message.See jsv-messages.properties.
The following are the arguments.
{0} The instance location
{1} The format name
{2} The error message description
{3} The input value- Returns:
- the message key
-
-