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() |
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
PropertyExceptionpublic boolean acceptPhantoms()
acceptPhantoms in interface PropertyVisitorpublic Object visit(MapProperty property, Object arg) throws PropertyException
visit in interface PropertyVisitorPropertyExceptionpublic Object visit(ListProperty property, Object arg) throws PropertyException
visit in interface PropertyVisitorPropertyExceptionpublic Object visit(ScalarProperty property, Object arg) throws PropertyException
visit in interface PropertyVisitorPropertyExceptionCopyright © 2012 Nuxeo SA. All Rights Reserved.