Package io.atlasmap.spi
Interface AtlasCollectionHelper
- All Known Implementing Classes:
DefaultAtlasCollectionHelper
,XmlCollectionHelper
public interface AtlasCollectionHelper
-
Method Summary
Modifier and TypeMethodDescriptionvoid
copyCollectionIndexes
(Field sourceParentField, Field sourceField, Field targetField, Field previousTargetField) Copies over collection indexes from source to target applying adjustments if collection counts differ.int
determineSourceCollectionCount
(Field sourceParentField, Field sourceField) Determines source collection count based on path and actions.int
determineTargetCollectionCount
(Field targetField) Determines target collection count based on path and actions.
-
Method Details
-
determineTargetCollectionCount
Determines target collection count based on path and actions.- Parameters:
targetField
- target field- Returns:
- target collection count
-
determineSourceCollectionCount
Determines source collection count based on path and actions.- Parameters:
sourceParentField
- source parent fieldsourceField
- source field- Returns:
- source collection count
-
copyCollectionIndexes
void copyCollectionIndexes(Field sourceParentField, Field sourceField, Field targetField, Field previousTargetField) Copies over collection indexes from source to target applying adjustments if collection counts differ.- Parameters:
sourceParentField
- source parent fieldsourceField
- source fieldtargetField
- target fieldpreviousTargetField
- previous target fiend
-