Package com.networknt.schema.keyword
Class DisallowUnknownKeywordFactory
java.lang.Object
com.networknt.schema.keyword.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, SchemaContext schemaContext) Gets the keyword given the keyword value.
-
Constructor Details
-
DisallowUnknownKeywordFactory
public DisallowUnknownKeywordFactory()
-
-
Method Details
-
getKeyword
Description copied from interface:KeywordFactoryGets the keyword given the keyword value.- Specified by:
getKeywordin interfaceKeywordFactory- Parameters:
value- the keyword valueschemaContext- the schemaContext- Returns:
- the keyword
-
getInstance
Gets the instance ofDisallowUnknownKeywordFactory.- Returns:
- the keyword factory
-