Package org.nuxeo.ecm.core.api.model
Class ValueExporter
java.lang.Object
org.nuxeo.ecm.core.api.model.ValueExporter
- All Implemented Interfaces:
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
-
Method Summary
Modifier and TypeMethodDescriptionboolean
protected String
run
(DocumentPart dp) visit
(ListProperty property, Object arg) visit
(MapProperty property, Object arg) visit
(ScalarProperty property, Object arg)
-
Constructor Details
-
ValueExporter
public ValueExporter(boolean prefixed) Constructs an exporter.- Parameters:
prefixed
- whether first-level keys of the map are prefixed
-
-
Method Details
-
getResult
-
run
- Throws:
PropertyException
-
getName
-
acceptPhantoms
public boolean acceptPhantoms()- Specified by:
acceptPhantoms
in interfacePropertyVisitor
-
visit
- Specified by:
visit
in interfacePropertyVisitor
- Throws:
PropertyException
-
visit
- Specified by:
visit
in interfacePropertyVisitor
- Throws:
PropertyException
-
visit
- Specified by:
visit
in interfacePropertyVisitor
- Throws:
PropertyException
-