public class DocumentModelToJSON extends Object implements PropertyVisitor
Only non-null properties are exported.
| Modifier and Type | Field and Description | 
|---|---|
protected static org.apache.commons.lang3.time.FastDateFormat | 
dateFormat  | 
protected net.sf.json.JSONObject | 
result  | 
| 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)  | 
protected static final org.apache.commons.lang3.time.FastDateFormat dateFormat
protected net.sf.json.JSONObject result
public DocumentModelToJSON()
public net.sf.json.JSONObject getResult()
public net.sf.json.JSONObject run(DocumentModel doc)
public 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 © 2019 Nuxeo. All rights reserved.