Class FieldMapper
java.lang.Object
org.nuxeo.ecm.core.io.impl.transformers.FieldMapper
- All Implemented Interfaces:
DocumentTransformer
Rename / translate a field
- Since:
- 7.4
-
Field Summary
-
Constructor Summary
ConstructorDescriptionFieldMapper
(String srcSchemaName, String srcField, String dstSchemaName, String dstField) -
Method Summary
Modifier and TypeMethodDescriptionprotected String
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.
-
Field Details
-
srcSchemaName
-
dstSchemaName
-
srcField
-
dstField
-
-
Constructor Details
-
FieldMapper
-
-
Method Details
-
getUnprefixedName
-
getPrefix
-
transform
Description copied from interface:DocumentTransformer
Transforms the given document and returns true to pass to the next transformer or false to exit from the transformation chain.- Specified by:
transform
in interfaceDocumentTransformer
- Parameters:
xdoc
- the document to transform- Returns:
- true to continue with the next transformer or false to exit transformation chain
- Throws:
IOException
-