Package com.networknt.schema
Class Vocabulary
- java.lang.Object
-
- com.networknt.schema.Vocabulary
-
public class Vocabulary extends java.lang.ObjectRepresents a vocabulary in meta-schema.This contains the IRI and the keywords in the vocabulary.
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.Stringiriprivate java.util.Set<Keyword>keywordsstatic VocabularyOPENAPI_3_1_BASEstatic 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(java.lang.String iri, Keyword... keywords)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)java.lang.StringgetIri()The iri of the vocabulary.java.util.Set<Keyword>getKeywords()The keywords in the vocabulary.inthashCode()java.lang.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
-
OPENAPI_3_1_BASE
public static final Vocabulary OPENAPI_3_1_BASE
-
iri
private final java.lang.String iri
-
keywords
private final java.util.Set<Keyword> keywords
-
-
Constructor Detail
-
Vocabulary
public Vocabulary(java.lang.String iri, Keyword... keywords)Constructor.- Parameters:
iri- the irikeywords- the keywords
-
-
Method Detail
-
getIri
public java.lang.String getIri()
The iri of the vocabulary.- Returns:
- the iri
-
getKeywords
public java.util.Set<Keyword> getKeywords()
The keywords in the vocabulary.- Returns:
- the keywords
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-