public class FieldMapper extends Object implements DocumentTransformer
Modifier and Type | Field and Description |
---|---|
protected String |
dstField |
protected String |
dstSchemaName |
protected String |
srcField |
protected String |
srcSchemaName |
Constructor and Description |
---|
FieldMapper(String srcSchemaName,
String srcField,
String dstSchemaName,
String dstField) |
Modifier and Type | Method and Description |
---|---|
protected String |
getPrefix(String name) |
protected String |
getUnprefixedName(String name) |
boolean |
transform(ExportedDocument xdoc)
Transforms the given document and returns true to pass to the next transformer or false to exit from the
transformation chain.
|
protected final String srcSchemaName
protected final String dstSchemaName
public FieldMapper(String srcSchemaName, String srcField, String dstSchemaName, String dstField)
protected String getUnprefixedName(String name)
public boolean transform(ExportedDocument xdoc) throws IOException
DocumentTransformer
transform
in interface DocumentTransformer
xdoc
- the document to transformIOException
Copyright © 2016 Nuxeo SA. All rights reserved.