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
ClientExceptionpublic boolean acceptPhantoms()
acceptPhantoms in interface PropertyVisitorpublic Object visit(MapProperty property, Object arg) throws PropertyException
visit in interface PropertyVisitorPropertyExceptionpublic Object visit(ListProperty property, Object arg) throws PropertyException
visit in interface PropertyVisitorPropertyExceptionpublic Object visit(ScalarProperty property, Object arg) throws PropertyException
visit in interface PropertyVisitorPropertyExceptionCopyright © 2012 Nuxeo SA. All Rights Reserved.