public abstract class JQueryTreeBuilder<T> extends Object
Constructor and Description |
---|
JQueryTreeBuilder() |
Modifier and Type | Method and Description |
---|---|
net.sf.json.JSONArray |
buildChildren(T parent) |
net.sf.json.JSONArray |
buildChildren(T parent,
String[] path,
int off) |
net.sf.json.JSONArray |
buildTree(String rootName,
String path) |
net.sf.json.JSONArray |
buildTree(T root,
String path) |
protected abstract Collection<T> |
getChildren(T obj) |
protected abstract String |
getName(T obj) |
protected abstract T |
getObject(String name) |
protected abstract net.sf.json.JSONObject |
toJson(T obj) |
public static final String CHILDREN
public JQueryTreeBuilder()
public net.sf.json.JSONArray buildChildren(T parent)
public net.sf.json.JSONArray buildChildren(T parent, String[] path, int off)
protected abstract Collection<T> getChildren(T obj)
Copyright © 2015 Nuxeo SA. All rights reserved.