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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanprotected Stringrun(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:
acceptPhantomsin interfacePropertyVisitor
-
visit
- Specified by:
visitin interfacePropertyVisitor- Throws:
PropertyException
-
visit
- Specified by:
visitin interfacePropertyVisitor- Throws:
PropertyException
-
visit
- Specified by:
visitin interfacePropertyVisitor- Throws:
PropertyException
-