@Override protected int doHash(final ValueHolder<SchemaTree> t) { return t.getValue().hashCode(); } }
@Override public JsonRef apply(final ValueHolder<SchemaTree> input) { return input.getValue().getDollarSchema(); } };
@Override public ValidatorList process(final ProcessingReport report, final SchemaContext input) throws ProcessingException { final ValueHolder<SchemaTree> in = ValueHolder.hold("schema", input.getSchema()); /* * We have to go through an intermediate report. If we re-enter this * function with a report already telling there is an error, we don't * want to wrongly report that the schema is invalid. */ final ProcessingReport r = new ListProcessingReport(report); final ValueHolder<SchemaTree> out = resolver.process(r, in); report.mergeWith(r); if (!r.isSuccess()) return null; final SchemaContext output = new SchemaContext(out.getValue(), input.getInstanceType()); return builder.process(report, output); }
@Override public final ValueHolder<OUT> process(final ProcessingReport report, final ValueHolder<IN> input) throws ProcessingException { final IN rawInput = input.getValue(); final OUT rawOutput = rawProcess(report, rawInput); return ValueHolder.hold(outputName, rawOutput); }
@Override public final ValueHolder<OUT> process(final ProcessingReport report, final ValueHolder<IN> input) throws ProcessingException { final IN rawInput = input.getValue(); final OUT rawOutput = rawProcess(report, rawInput); return ValueHolder.hold(outputName, rawOutput); }
@Override public final ValueHolder<OUT> process(final ProcessingReport report, final ValueHolder<IN> input) throws ProcessingException { final IN rawInput = input.getValue(); final OUT rawOutput = rawProcess(report, rawInput); return ValueHolder.hold(outputName, rawOutput); }