/** * This private load method is used to load documents directly or indirectly * referenced by the top-level document. A preloaded tree is never provided in * this case. */ private Content loadRequestedDoc(URL url, boolean rewriteSimpleRefs) { return loadInternal(url, null, rewriteSimpleRefs); }
/** * Public load for the top-level model document. * <p> * This method may provide the preloaded tree corresponding to the specified * URL. E.g. this would generally be the case when a model spec in an open * editor is normalized. In such cases, the URL is still required so that * relative references appearing in that tree can be resolved. */ public Content load(URL url, JsonNode tree, boolean rewriteSimpleRefs) { Content content = loadInternal(url, tree, rewriteSimpleRefs); loadRequestedDocuments(rewriteSimpleRefs); return content; }