@Override JsonNode createSchemaInstance(String input) throws IOException { return JsonLoader.fromString(input); } }.create(schema);
@Override JsonNode createSchemaInstance(Reader input) throws IOException { return JsonLoader.fromReader(input); } }.create(schema);
@Override JsonNode createSchemaInstance(File input) throws IOException { return JsonLoader.fromFile(input); } }.create(file);
/** * Load one resource from the current package as a {@link JsonNode} * * @param name name of the resource (<b>MUST</b> start with {@code /} * @return a JSON document * @throws IOException resource not found */ public static JsonNode loadResource(final String name) throws IOException { return JsonLoader.fromResource(PKGBASE + name); } }
private DraftV4TypeDigester() { super("type", NodeType.ARRAY, NodeType.values()); }
public ArraySchemaDigesterTest() throws IOException { testNode = JsonLoader.fromResource("/array/digest.json"); }
public DraftV3TypeKeywordDigester(final String keyword) { super(keyword, NodeType.ARRAY, NodeType.values()); }
public SelfValidationTest() throws IOException { draftv3 = JsonLoader.fromResource("/draftv3/schema"); draftv4 = JsonLoader.fromResource("/draftv4/schema"); }
public DraftV4TypeDigesterTest() throws IOException { super("type", NodeType.ARRAY, NodeType.values()); } }
public ObjectSchemaDigesterTest() throws IOException { testNode = JsonLoader.fromResource("/object/digest.json"); }
public AnyOfDigesterTest() throws IOException { super("anyOf", NodeType.ARRAY, NodeType.values()); } }
public ArraySchemaSelectorTest() throws IOException { testNode = JsonLoader.fromResource("/array/lookup.json"); }
public OneOfDigesterTest() throws IOException { super("oneOf", NodeType.ARRAY, NodeType.values()); } }
public ObjectSchemaSelectorTest() throws IOException { testNode = JsonLoader.fromResource("/object/lookup.json"); }
public NotDigesterTest() throws IOException { super("not", NodeType.ARRAY, NodeType.values()); } }
public DisallowDigesterTest() throws IOException { super("disallow", NodeType.ARRAY, NodeType.values()); } }
public DraftV3TypeDigesterTest() throws IOException { super("type", NodeType.ARRAY, NodeType.values()); } }
public EnumDigesterTest() throws IOException { super("enum", NodeType.ARRAY, NodeType.values()); } }
public AllOfDigesterTest() throws IOException { super("allOf", NodeType.ARRAY, NodeType.values()); } }
public ExtendsDigesterTest() throws IOException { super("extends", NodeType.ARRAY, NodeType.values()); } }