com.github.fge.jsonschema.keyword.validator.helpers
Class DraftV3TypeKeywordValidator

java.lang.Object
  extended by com.github.fge.jsonschema.keyword.validator.AbstractKeywordValidator
      extended by com.github.fge.jsonschema.keyword.validator.helpers.DraftV3TypeKeywordValidator
All Implemented Interfaces:
KeywordValidator
Direct Known Subclasses:
DisallowKeywordValidator, DraftV3TypeValidator

public abstract class DraftV3TypeKeywordValidator
extends AbstractKeywordValidator

Helper keyword validator for draft v3's type and disallow

Their validation logic differ, however their digest is the same; therefore they are built in the same way.


Field Summary
protected static JsonNodeFactory FACTORY
           
protected  List<Integer> schemas
           
protected  EnumSet<NodeType> types
           
 
Fields inherited from class com.github.fge.jsonschema.keyword.validator.AbstractKeywordValidator
keyword
 
Constructor Summary
protected DraftV3TypeKeywordValidator(String keyword, JsonNode digested)
           
 
Method Summary
 String toString()
           
 
Methods inherited from class com.github.fge.jsonschema.keyword.validator.AbstractKeywordValidator
newMsg, newMsg, toArrayNode
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.github.fge.jsonschema.keyword.validator.KeywordValidator
validate
 

Field Detail

FACTORY

protected static final JsonNodeFactory FACTORY

types

protected final EnumSet<NodeType> types

schemas

protected final List<Integer> schemas
Constructor Detail

DraftV3TypeKeywordValidator

protected DraftV3TypeKeywordValidator(String keyword,
                                      JsonNode digested)
Method Detail

toString

public final String toString()
Specified by:
toString in class AbstractKeywordValidator