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 booleanacceptPhantoms()protected StringgetName(Property property)Map<String,Serializable>getResult()Map<String,Serializable>run(DocumentPart dp)Objectvisit(ListProperty property, Object arg)Objectvisit(MapProperty property, Object arg)Objectvisit(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:
acceptPhantomsin interfacePropertyVisitor
-
visit
public Object visit(MapProperty property, Object arg) throws PropertyException
- Specified by:
visitin interfacePropertyVisitor- Throws:
PropertyException
-
visit
public Object visit(ListProperty property, Object arg) throws PropertyException
- Specified by:
visitin interfacePropertyVisitor- Throws:
PropertyException
-
visit
public Object visit(ScalarProperty property, Object arg) throws PropertyException
- Specified by:
visitin interfacePropertyVisitor- Throws:
PropertyException
-
-