Package com.networknt.schema.vocabulary
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 Summary
Fields Modifier and Type Field Description static VocabularyDRAFT_2019_09_APPLICATORstatic VocabularyDRAFT_2019_09_CONTENTstatic VocabularyDRAFT_2019_09_COREstatic VocabularyDRAFT_2019_09_FORMATstatic VocabularyDRAFT_2019_09_META_DATAstatic VocabularyDRAFT_2019_09_VALIDATIONstatic VocabularyDRAFT_2020_12_APPLICATORstatic VocabularyDRAFT_2020_12_CONTENTstatic VocabularyDRAFT_2020_12_COREstatic VocabularyDRAFT_2020_12_FORMAT_ANNOTATIONstatic VocabularyDRAFT_2020_12_FORMAT_ASSERTIONstatic VocabularyDRAFT_2020_12_META_DATAstatic VocabularyDRAFT_2020_12_UNEVALUATEDstatic VocabularyDRAFT_2020_12_VALIDATIONstatic VocabularyOPENAPI_3_1_BASE
-
Constructor Summary
Constructors Constructor Description Vocabulary(String id, Keyword... keywords)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)StringgetId()The id of the vocabulary.Set<Keyword>getKeywords()The keywords in the vocabulary.inthashCode()StringtoString()
-
-
-
Field Detail
-
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
-
-
Method Detail
-
getId
public String getId()
The id of the vocabulary.- Returns:
- the id
-
-