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 Details

    • AbstractRFC3986Format

      public AbstractRFC3986Format()
  • Method Details

    • 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.

      Specified by:
      matches in interface Format
      Parameters:
      executionContext - the execution context
      value - to match
      Returns:
      true if matches
    • 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