protected VertexSchema createVertexSchema(String key) throws JSONException { JSONObject vertexConfiguration = this.json.optJSONObject(key); if (vertexConfiguration == null) return null; if (vertexConfiguration.optBoolean("ref", false)) return new ReferenceVertexSchema(vertexConfiguration, graph); return new RestVertex(vertexConfiguration, baseUrl, resource, graph, templateHolder, resultPath, opTranslator, maxResultSize, complexTranslator, valuesToString); }
protected VertexSchema createVertexSchema(String key) throws JSONException { JSONObject vertexConfiguration = this.json.optJSONObject(key); if(vertexConfiguration == null) return null; if(vertexConfiguration.optBoolean("ref", false)) return new ReferenceVertexSchema(vertexConfiguration, graph); return new DocVertexSchema(vertexConfiguration, client, graph); }
protected VertexSchema createVertexSchema(String key, String resource) throws JSONException { JSONObject vertexConfiguration = this.json.optJSONObject(key); if (vertexConfiguration == null) return null; if (vertexConfiguration.optBoolean("ref", false)) return new ReferenceVertexSchema(vertexConfiguration, graph); return new RestVertex(vertexConfiguration, baseUrl, graph, templateHolder, resultPath, opTranslator, maxResultSize, complexTranslator, valuesToString); }
@Override protected VertexSchema createVertexSchema(String key) throws JSONException { JSONObject vertexConfiguration = this.json.optJSONObject(key); if(vertexConfiguration == null) return null; if(vertexConfiguration.optBoolean("ref", false)) return new ReferenceVertexSchema(vertexConfiguration, graph); return new InnerRowVertexSchema(vertexConfiguration, table, graph); }
protected VertexSchema createVertexSchema(String key) throws JSONException { JSONObject vertexConfiguration = this.json.optJSONObject(key); if(vertexConfiguration == null) return null; if(vertexConfiguration.optBoolean("ref", false)) return new ReferenceVertexSchema(vertexConfiguration, graph); return new RowVertexSchema(vertexConfiguration, table, graph); }