Example #1
0
 public JSONObject buildJo(Member m) {
   JSONObject e = new JSONObject();
   e.put("level", m.getLevel().getLabel());
   e.put("caption", m.getLabel());
   e.put("depth", Integer.toString(m.getRootDistance()));
   addMemberPropertiesJo(e, m);
   return e;
 }
Example #2
0
 public Element build(Member m) {
   Element e = table.elem("member");
   e.setAttribute("level", m.getLevel().getLabel());
   e.setAttribute("caption", m.getLabel());
   e.setAttribute("depth", Integer.toString(m.getRootDistance()));
   addMemberProperties(e, m);
   return e;
 }