Class UriReferenceFormat

java.lang.Object
com.networknt.schema.format.AbstractRFC3986Format
com.networknt.schema.format.UriReferenceFormat
All Implemented Interfaces:
Format

public class UriReferenceFormat extends AbstractRFC3986Format
Format for uri-reference.
  • Constructor Details

    • UriReferenceFormat

      public UriReferenceFormat()
  • Method Details

    • validate

      protected boolean validate(URI uri)
      Description copied from class: AbstractRFC3986Format
      Determines if the uri matches the format.
      Specified by:
      validate in class AbstractRFC3986Format
      Parameters:
      uri - the uri to match
      Returns:
      true if matches
    • getName

      public String getName()
      Description copied from interface: Format
      Gets the format name.
      Returns:
      the format name as referred to in a json schema format node.
    • getMessageKey

      public String getMessageKey()
      Description copied from interface: Format
      Gets 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