Class Vocabulary

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

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

This contains the id and the keywords in the vocabulary.

  • Field Details

    • DRAFT_2019_09_CORE

      public static final Vocabulary DRAFT_2019_09_CORE
    • DRAFT_2019_09_APPLICATOR

      public static final Vocabulary DRAFT_2019_09_APPLICATOR
    • DRAFT_2019_09_VALIDATION

      public static final Vocabulary DRAFT_2019_09_VALIDATION
    • DRAFT_2019_09_META_DATA

      public static final Vocabulary DRAFT_2019_09_META_DATA
    • DRAFT_2019_09_FORMAT

      public static final Vocabulary DRAFT_2019_09_FORMAT
    • DRAFT_2019_09_CONTENT

      public static final Vocabulary DRAFT_2019_09_CONTENT
    • DRAFT_2020_12_CORE

      public static final Vocabulary DRAFT_2020_12_CORE
    • DRAFT_2020_12_APPLICATOR

      public static final Vocabulary DRAFT_2020_12_APPLICATOR
    • DRAFT_2020_12_UNEVALUATED

      public static final Vocabulary DRAFT_2020_12_UNEVALUATED
    • DRAFT_2020_12_VALIDATION

      public static final Vocabulary DRAFT_2020_12_VALIDATION
    • DRAFT_2020_12_META_DATA

      public static final Vocabulary DRAFT_2020_12_META_DATA
    • DRAFT_2020_12_FORMAT_ANNOTATION

      public static final Vocabulary DRAFT_2020_12_FORMAT_ANNOTATION
    • DRAFT_2020_12_FORMAT_ASSERTION

      public static final Vocabulary DRAFT_2020_12_FORMAT_ASSERTION
    • DRAFT_2020_12_CONTENT

      public static final Vocabulary DRAFT_2020_12_CONTENT
    • OPENAPI_3_1_BASE

      public static final Vocabulary OPENAPI_3_1_BASE
  • Constructor Details

    • Vocabulary

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

    • getId

      public String getId()
      The id of the vocabulary.
      Returns:
      the id
    • 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