Class SchemaLocation.Builder

java.lang.Object
com.networknt.schema.SchemaLocation.Builder
Enclosing class:
SchemaLocation

public static class SchemaLocation.Builder extends Object
Builder for building SchemaLocation.
  • Field Details

  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • absoluteIri

      protected SchemaLocation.Builder absoluteIri(AbsoluteIri absoluteIri)
      Sets the canonical absolute IRI of the schema object.

      This is a unique identifier indicated by the $id property or id property in Draft 4 and earlier. This does not have to be network accessible.

      Parameters:
      absoluteIri - the canonical IRI of the schema object
      Returns:
      the builder
    • absoluteIri

      protected SchemaLocation.Builder absoluteIri(String absoluteIri)
      Sets the canonical absolute IRI of the schema object.

      This is a unique identifier indicated by the $id property or id property in Draft 4 and earlier. This does not have to be network accessible.

      Parameters:
      absoluteIri - the canonical IRI of the schema object
      Returns:
      the builder
    • fragment

      protected SchemaLocation.Builder fragment(JsonNodePath fragment)
      Sets the fragment.
      Parameters:
      fragment - the fragment
      Returns:
      the builder
    • fragment

      protected SchemaLocation.Builder fragment(String fragment)
      Sets the fragment.
      Parameters:
      fragment - the fragment
      Returns:
      the builder
    • build

      public SchemaLocation build()
      Builds a SchemaLocation.
      Returns:
      the schema location