public final class SchemaLoader extends Object
All schema registering and downloading is done through this class.
Note that if the id of a schema is not absolute (that is, the URI itself is absolute and it has no fragment part, or an empty fragment), then the whole schema will be considered anonymous.
This class is thread safe.
Constructor and Description |
---|
SchemaLoader() |
SchemaLoader(LoadingConfiguration cfg) |
Modifier and Type | Method and Description |
---|---|
SchemaTree |
get(URI uri)
Get a schema tree from the given URI
|
SchemaTree |
load(JsonNode schema) |
String |
toString() |
public SchemaLoader(LoadingConfiguration cfg)
public SchemaLoader()
public SchemaTree load(JsonNode schema)
public SchemaTree get(URI uri) throws ProcessingException
Note that if the URI is relative, it will be resolved against this registry's namespace, if any.
uri
- the URIProcessingException
Copyright © 2013. All Rights Reserved.