com.github.fge.jsonschema.keyword.digest
Class AbstractDigester

java.lang.Object
  extended by com.github.fge.jsonschema.keyword.digest.AbstractDigester
All Implemented Interfaces:
Digester
Direct Known Subclasses:
AdditionalItemsDigester, AdditionalPropertiesDigester, ArraySchemaDigester, DraftV3DependenciesDigester, DraftV3PropertiesDigester, DraftV3TypeKeywordDigester, DraftV4DependenciesDigester, DraftV4TypeDigester, IdentityDigester, NullDigester, NumericDigester, ObjectSchemaDigester, RequiredDigester, SimpleDigester

public abstract class AbstractDigester
extends Object
implements Digester

Base abstract digester class for all keyword digesters


Field Summary
protected static JsonNodeFactory FACTORY
           
protected  String keyword
           
 
Constructor Summary
protected AbstractDigester(String keyword, NodeType first, NodeType... other)
           
 
Method Summary
 EnumSet<NodeType> supportedTypes()
          Return the instance types handled by this digested form
 String toString()
           
 
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.digest.Digester
digest
 

Field Detail

FACTORY

protected static final JsonNodeFactory FACTORY

keyword

protected final String keyword
Constructor Detail

AbstractDigester

protected AbstractDigester(String keyword,
                           NodeType first,
                           NodeType... other)
Method Detail

supportedTypes

public final EnumSet<NodeType> supportedTypes()
Description copied from interface: Digester
Return the instance types handled by this digested form

Specified by:
supportedTypes in interface Digester
Returns:
a set of NodeTypes

toString

public final String toString()
Overrides:
toString in class Object