/** * Build graph. * * @param properties the properties */ protected void buildGraph(Map<String, String> properties) { graphFactory = new PropertiesGraphFactory(properties); }
/** * Build KernelDeployment instance. * * @return KernelDeployment instance */ public KernelDeployment build() { return graphFactory.build(); } }
public PropertiesGraphFactory(Properties properties) { if (properties == null) throw new IllegalArgumentException("Null properties."); buildGraph(toMap(properties)); }
/** * Build graph from properties. * * @param properties the properties */ protected void buildGraph(Map<String, String> properties) { graph = new Graph<String>(); root = vertexFactory.rootVertex(); graph.setRootVertex(root); for(String key : properties.keySet()) { String value = properties.get(key); buildVertices(root, 0, key, value, 0); } }
public PropertiesGraphFactory(Map<String, String> properties) { if (properties == null) throw new IllegalArgumentException("Null properties."); buildGraph(properties); }
buildVertices(current, p, key, value, level + 1);