com.github.fge.jsonschema.keyword.digest.helpers
Class SimpleDigester

java.lang.Object
  extended by com.github.fge.jsonschema.keyword.digest.AbstractDigester
      extended by com.github.fge.jsonschema.keyword.digest.helpers.SimpleDigester
All Implemented Interfaces:
Digester

public final class SimpleDigester
extends AbstractDigester

A digester only returning the node associated with the keyword

As with all digesters, however, you are required to specify what types this keyword supports.


Field Summary
 
Fields inherited from class com.github.fge.jsonschema.keyword.digest.AbstractDigester
FACTORY, keyword
 
Constructor Summary
SimpleDigester(String keyword, NodeType first, NodeType... other)
           
 
Method Summary
 JsonNode digest(JsonNode schema)
          Digest a schema into a simplified form
 
Methods inherited from class com.github.fge.jsonschema.keyword.digest.AbstractDigester
supportedTypes, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SimpleDigester

public SimpleDigester(String keyword,
                      NodeType first,
                      NodeType... other)
Method Detail

digest

public JsonNode digest(JsonNode schema)
Description copied from interface: Digester
Digest a schema into a simplified form

Parameters:
schema - the schema to digest
Returns:
the digested form