/** * Return the bean root for this name (either unique name or scope) */ public BaseBean getRoot(String s) { BaseBean[] r = this.getRoots(s); if (r.length>0) return r[0]; return null; }
void resolveGraph(String path) { String pathRoot = null; if (PathResolver.needResolving(path)) path = (new PathResolver(this.parent, path)).toString(); int idx = path.indexOf(':'); if (idx != -1) { pathRoot = path.substring(idx+1); path = path.substring(0, idx); } BaseBean[] beans = this.registry.getRoots(path); if (beans.length > 0) { this.root = beans[0]; if (pathRoot != null) { DDCursor cur = new DDRegistryParser.DDCursor(this, pathRoot); this.root = cur.getRoot(); } } }
BaseBean[] beans = this.registry.getRoots(graphName); this.parser = new ParserSet(beans, null, parsingPath); this.parser.setRoot();