public class DocumentModelToJSON extends Object implements PropertyVisitor
Only non-null properties are exported.
Constructor and Description |
---|
DocumentModelToJSON() |
Modifier and Type | Method and Description |
---|---|
boolean |
acceptPhantoms() |
net.sf.json.JSONObject |
getResult() |
net.sf.json.JSONObject |
run(DocumentModel doc) |
Object |
visit(ListProperty property,
Object arg) |
Object |
visit(MapProperty property,
Object arg) |
Object |
visit(ScalarProperty property,
Object arg) |
public net.sf.json.JSONObject getResult()
public net.sf.json.JSONObject run(DocumentModel doc) throws ClientException
ClientException
public boolean acceptPhantoms()
acceptPhantoms
in interface PropertyVisitor
public Object visit(MapProperty property, Object arg) throws PropertyException
visit
in interface PropertyVisitor
PropertyException
public Object visit(ListProperty property, Object arg) throws PropertyException
visit
in interface PropertyVisitor
PropertyException
public Object visit(ScalarProperty property, Object arg) throws PropertyException
visit
in interface PropertyVisitor
PropertyException
Copyright © 2013 Nuxeo SA. All Rights Reserved.