public class JSonTreeSerializer extends Object implements TreeItemVisitor
Constructor and Description |
---|
JSonTreeSerializer() |
Modifier and Type | Method and Description |
---|---|
String |
getUrl(TreeItem item)
Must be overridden to provide real URLs
|
net.sf.json.JSONArray |
toJSON(Collection<TreeItem> items) |
net.sf.json.JSONObject |
toJSON(TreeItem root) |
net.sf.json.JSONArray |
toJSON(TreeItem[] items) |
Object |
visit(TreeItem item)
Visit a tree item.
|
public net.sf.json.JSONArray toJSON(Collection<TreeItem> items)
public net.sf.json.JSONArray toJSON(TreeItem[] items)
public net.sf.json.JSONObject toJSON(TreeItem root)
public Object visit(TreeItem item)
TreeItemVisitor
visit
in interface TreeItemVisitor
item
- the item to visitCopyright © 2013 Nuxeo SA. All Rights Reserved.