Package org.nuxeo.ecm.core.api.model
Class ValueExporter
- java.lang.Object
-
- org.nuxeo.ecm.core.api.model.ValueExporter
-
- All Implemented Interfaces:
PropertyVisitor
public class ValueExporter extends Object implements PropertyVisitor
Exporter for a document's values into a map.The values of the first-level keys of the map may be prefixed (standard prefix:name naming) or not.
-
-
Constructor Summary
Constructors Constructor Description ValueExporter(boolean prefixed)
Constructs an exporter.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
acceptPhantoms()
protected String
getName(Property property)
Map<String,Serializable>
getResult()
Map<String,Serializable>
run(DocumentPart dp)
Object
visit(ListProperty property, Object arg)
Object
visit(MapProperty property, Object arg)
Object
visit(ScalarProperty property, Object arg)
-
-
-
Method Detail
-
getResult
public Map<String,Serializable> getResult()
-
run
public Map<String,Serializable> run(DocumentPart dp) throws PropertyException
- Throws:
PropertyException
-
acceptPhantoms
public boolean acceptPhantoms()
- Specified by:
acceptPhantoms
in interfacePropertyVisitor
-
visit
public Object visit(MapProperty property, Object arg) throws PropertyException
- Specified by:
visit
in interfacePropertyVisitor
- Throws:
PropertyException
-
visit
public Object visit(ListProperty property, Object arg) throws PropertyException
- Specified by:
visit
in interfacePropertyVisitor
- Throws:
PropertyException
-
visit
public Object visit(ScalarProperty property, Object arg) throws PropertyException
- Specified by:
visit
in interfacePropertyVisitor
- Throws:
PropertyException
-
-