Class Vocabulary

java.lang.Object
com.networknt.schema.Vocabulary

public class Vocabulary extends Object
Represents a vocabulary in meta-schema.

This contains the IRI and the keywords in the vocabulary.

  • Field Details

    • V201909_CORE

      public static final Vocabulary V201909_CORE
    • V201909_APPLICATOR

      public static final Vocabulary V201909_APPLICATOR
    • V201909_VALIDATION

      public static final Vocabulary V201909_VALIDATION
    • V201909_META_DATA

      public static final Vocabulary V201909_META_DATA
    • V201909_FORMAT

      public static final Vocabulary V201909_FORMAT
    • V201909_CONTENT

      public static final Vocabulary V201909_CONTENT
    • V202012_CORE

      public static final Vocabulary V202012_CORE
    • V202012_APPLICATOR

      public static final Vocabulary V202012_APPLICATOR
    • V202012_UNEVALUATED

      public static final Vocabulary V202012_UNEVALUATED
    • V202012_VALIDATION

      public static final Vocabulary V202012_VALIDATION
    • V202012_META_DATA

      public static final Vocabulary V202012_META_DATA
    • V202012_FORMAT_ANNOTATION

      public static final Vocabulary V202012_FORMAT_ANNOTATION
    • V202012_FORMAT_ASSERTION

      public static final Vocabulary V202012_FORMAT_ASSERTION
    • V202012_CONTENT

      public static final Vocabulary V202012_CONTENT
    • OPENAPI_3_1_BASE

      public static final Vocabulary OPENAPI_3_1_BASE
  • Constructor Details

    • Vocabulary

      public Vocabulary(String iri, Keyword... keywords)
      Constructor.
      Parameters:
      iri - the iri
      keywords - the keywords
  • Method Details

    • getIri

      public String getIri()
      The iri of the vocabulary.
      Returns:
      the iri
    • getKeywords

      public Set<Keyword> getKeywords()
      The keywords in the vocabulary.
      Returns:
      the keywords
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object