com.univocity.api.config.builders
Interface CopyTransform


public interface CopyTransform

The CopyTransform configuration is obtained from either a CopyToSingleField configuration, or a CopyToMultipleFields, which are part of the configuration initialized by a call to FieldMappingSetup.copy(String), FieldMappingSetup.copy(String...) or FieldMappingSetup.read(String...) .

It is used to define what functions in the DataIntegrationEngine should be used to process values from an input field and transform them into values that will then be written to a destination field.

Author:
uniVocity Software Pty Ltd - dev@univocity.com
See Also:
FieldMappingSetup, FunctionCall, CopyToSingleField, CopyToMultipleFields

Method Summary
 void readingWith(String... functionNames)
          Defines what sequence of functions in the DataIntegrationEngine should be used to transform values from an input field and transform them into values that will then be written to a destination field.
 

Method Detail

readingWith

void readingWith(String... functionNames)
Defines what sequence of functions in the DataIntegrationEngine should be used to transform values from an input field and transform them into values that will then be written to a destination field.

This completes the configuration started in FieldMappingSetup.copy(String), FieldMappingSetup.copy(String...) or FieldMappingSetup.read(String...)

Parameters:
functionNames - the sequence of function names that will be executed against each value read from the input.

Note: this establishes a chaining of functions: If the first function trims strings, then the second function will receive a trimmed String instead of the original value.



Copyright © 2015 uniVocity Software Pty Ltd. All rights reserved.