Package com.networknt.schema
Class DisallowUnknownKeywordFactory
- java.lang.Object
-
- com.networknt.schema.DisallowUnknownKeywordFactory
-
- All Implemented Interfaces:
KeywordFactory
public class DisallowUnknownKeywordFactory extends Object implements KeywordFactory
Unknown keyword factory that rejects unknown keywords.
-
-
Constructor Summary
Constructors Constructor Description DisallowUnknownKeywordFactory()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DisallowUnknownKeywordFactory
getInstance()
Keyword
getKeyword(String value, ValidationContext validationContext)
Gets the keyword given the keyword value.
-
-
-
Method Detail
-
getKeyword
public Keyword getKeyword(String value, ValidationContext validationContext)
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
public static DisallowUnknownKeywordFactory getInstance()
-
-