Class FieldMapper

java.lang.Object
org.nuxeo.ecm.core.io.impl.transformers.FieldMapper
All Implemented Interfaces:
DocumentTransformer

public class FieldMapper extends Object implements DocumentTransformer
Rename / translate a field
Since:
7.4
  • Field Details

    • srcSchemaName

      protected final String srcSchemaName
    • dstSchemaName

      protected final String dstSchemaName
    • srcField

      protected final String srcField
    • dstField

      protected final String dstField
  • Constructor Details

  • Method Details

    • getUnprefixedName

      protected String getUnprefixedName(String name)
    • getPrefix

      protected String getPrefix(String name)
    • transform

      public boolean transform(ExportedDocument xdoc) throws IOException
      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 interface DocumentTransformer
      Parameters:
      xdoc - the document to transform
      Returns:
      true to continue with the next transformer or false to exit transformation chain
      Throws:
      IOException