public class ValueExporter extends Object implements PropertyVisitor
The values of the first-level keys of the map may be prefixed (standard prefix:name naming) or not.
Constructor and Description |
---|
ValueExporter(boolean prefixed)
Constructs an exporter.
|
Modifier and Type | Method and 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) |
public ValueExporter(boolean prefixed)
prefixed
- whether first-level keys of the map are prefixedpublic Map<String,Serializable> getResult()
public Map<String,Serializable> run(DocumentPart dp) throws PropertyException
PropertyException
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 © 2015 Nuxeo SA. All rights reserved.