@Test public void query_b_and_c_in_A() throws Exception { EntityMetadata md = getMd("composite/A.json"); GMD gmd = new GMD(); gmd.add(query("{'field':'b.field1','op':'=','rfield':'obj1.c.0._id'}")); CompositeMetadata a = CompositeMetadata.buildCompositeMetadata(md, gmd); System.out.println(a.toTreeString()); Assert.assertNotNull(a.getChildMetadata(new Path("b"))); Assert.assertNotNull(a.getChildMetadata(new Path("obj1.c"))); }
public void add(Projection p) { projections.add(p); }
AbstractGetMetadata implements CompositeMetadata.GetMetadata, Serializable { public void add(Projection p) { projections.add(p); } }
AbstractGetMetadata implements CompositeMetadata.GetMetadata, Serializable { public void add(Projection p) { projections.add(p); } AbstractGetMetadata();  AbstractGetMetadata(Projection projection,
                               QueryExpression query);  AbstractGetMetadata(List<Projection> projections,
                               List<QueryExpression> queries); }
AbstractGetMetadata implements CompositeMetadata.GetMetadata, Serializable { public void add(Projection p) { projections.add(p); } AbstractGetMetadata();  AbstractGetMetadata(Projection projection,
                               QueryExpression query);  AbstractGetMetadata(List<Projection> projections,
                               List<QueryExpression> queries); void add(Projection p); void add(QueryExpression q); @Override EntityMetadata getMetadata(Path injectionField,
                                      String entityName,
                                      String version); }
AbstractGetMetadata implements CompositeMetadata.GetMetadata, Serializable { public void add(Projection p) { projections.add(p); } AbstractGetMetadata();  AbstractGetMetadata(Projection projection,
                               QueryExpression query);  AbstractGetMetadata(List<Projection> projections,
                               List<QueryExpression> queries); void add(Projection p); void add(QueryExpression q); @Override EntityMetadata getMetadata(Path injectionField,
                                      String entityName,
                                      String version);  }