Package com.networknt.schema
Class DisallowUnknownKeywordFactory
java.lang.Object
com.networknt.schema.DisallowUnknownKeywordFactory
- All Implemented Interfaces:
KeywordFactory
Unknown keyword factory that rejects unknown keywords.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the instance ofDisallowUnknownKeywordFactory
.getKeyword
(String value, ValidationContext validationContext) Gets the keyword given the keyword value.
-
Constructor Details
-
DisallowUnknownKeywordFactory
public DisallowUnknownKeywordFactory()
-
-
Method Details
-
getKeyword
Description copied from interface:KeywordFactory
Gets the keyword given the keyword value.- Specified by:
getKeyword
in interfaceKeywordFactory
- Parameters:
value
- the keyword valuevalidationContext
- the validationContext- Returns:
- the keyword
-
getInstance
Gets the instance ofDisallowUnknownKeywordFactory
.- Returns:
- the keyword factory
-