Package com.networknt.schema
Class Vocabulary
- java.lang.Object
-
- com.networknt.schema.Vocabulary
-
public class Vocabulary extends Object
Represents a vocabulary in meta schema.This contains the id and the related keywords.
-
-
Field Summary
Fields Modifier and Type Field Description static VocabularyV201909_APPLICATORstatic VocabularyV201909_CONTENTstatic VocabularyV201909_COREstatic VocabularyV201909_FORMATstatic VocabularyV201909_META_DATAstatic VocabularyV201909_VALIDATIONstatic VocabularyV202012_APPLICATORstatic VocabularyV202012_CONTENTstatic VocabularyV202012_COREstatic VocabularyV202012_FORMAT_ANNOTATIONstatic VocabularyV202012_FORMAT_ASSERTIONstatic VocabularyV202012_META_DATAstatic VocabularyV202012_UNEVALUATEDstatic VocabularyV202012_VALIDATION
-
Constructor Summary
Constructors Constructor Description Vocabulary(String id, String... 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<String>getKeywords()The keywords in the vocabulary.inthashCode()StringtoString()
-
-
-
Field Detail
-
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
-
-
Method Detail
-
getId
public String getId()
The id of the vocabulary.- Returns:
- the id
-
-