Package io.atlasmap.core
Class TemplateCombineStrategy
- java.lang.Object
-
- io.atlasmap.core.DefaultAtlasCombineStrategy
-
- io.atlasmap.core.TemplateCombineStrategy
-
- All Implemented Interfaces:
io.atlasmap.spi.AtlasCombineStrategy
public class TemplateCombineStrategy extends DefaultAtlasCombineStrategy
A template-based combine strategy that uses a template in place of a delimiter to combine the input usingMessageFormat.format(String, Object...).Warning: The indexes in the template must be one-based, unlike the
MessageFormat.format(String, Object...)method, which expects zero-based indexes.
-
-
Field Summary
-
Fields inherited from class io.atlasmap.core.DefaultAtlasCombineStrategy
DEFAULT_COMBINE_DELIMITER, DEFAULT_COMBINE_LIMIT
-
-
Constructor Summary
Constructors Constructor Description TemplateCombineStrategy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringcombineValues(Map<Integer,String> values, String template)-
Methods inherited from class io.atlasmap.core.DefaultAtlasCombineStrategy
combineValues, combineValues, combineValues, getDelimiter, getLimit, isDisableAddDelimiterOnNull, isDisableAutoTrim, setDelimiter, setDisableAddDelimiterOnNull, setDisableAutoTrim, setLimit, sortByKey
-
-
-
-
Method Detail
-
combineValues
public String combineValues(Map<Integer,String> values, String template)
- Specified by:
combineValuesin interfaceio.atlasmap.spi.AtlasCombineStrategy- Overrides:
combineValuesin classDefaultAtlasCombineStrategy
-
-