com.github.fge.jsonschema.examples
Class ExampleBase
java.lang.Object
com.github.fge.jsonschema.examples.ExampleBase
- Direct Known Subclasses:
- Example1, Example10, Example2, Example3, Example4, Example5, Example6, Example7, Example8, Example9
public abstract class ExampleBase
- extends Object
Base abstract class for all examples
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ExampleBase
public ExampleBase()
printReport
protected static void printReport(ProcessingReport report)
- Print a validation report to stdout
Will print whether validation succeeded. In the event of a failure,
dumps validation error messages.
- Parameters:
report
- the report
loadResource
protected static JsonNode loadResource(String name)
throws IOException
- Load one resource from the current package as a
JsonNode
- Parameters:
name
- name of the resource (MUST start with /
- Returns:
- a JSON document
- Throws:
IOException
- resource not found
Copyright © 2014. All Rights Reserved.