public class JSONMetadataExporter extends Object implements PropertyVisitor
DocumentModel
's metadata to a JSON object.Constructor and Description |
---|
JSONMetadataExporter() |
Modifier and Type | Method and Description |
---|---|
boolean |
acceptPhantoms() |
org.json.JSONObject |
getResult() |
org.json.JSONObject |
run(DocumentModel doc) |
Object |
visit(ListProperty property,
Object arg) |
Object |
visit(MapProperty property,
Object arg) |
Object |
visit(ScalarProperty property,
Object arg) |
public org.json.JSONObject getResult()
public org.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 © 2011 Nuxeo SA. All Rights Reserved.