Package io.atlasmap.core
Class DefaultAtlasCollectionHelper
java.lang.Object
io.atlasmap.core.DefaultAtlasCollectionHelper
- All Implemented Interfaces:
AtlasCollectionHelper
- Direct Known Subclasses:
XmlCollectionHelper
-
Constructor Summary
-
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.protected AtlasPath
createTargetAtlasPath
(String path) 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.
-
Constructor Details
-
DefaultAtlasCollectionHelper
public DefaultAtlasCollectionHelper() -
DefaultAtlasCollectionHelper
-
-
Method Details
-
createTargetAtlasPath
-
determineTargetCollectionCount
Description copied from interface:AtlasCollectionHelper
Determines target collection count based on path and actions.- Specified by:
determineTargetCollectionCount
in interfaceAtlasCollectionHelper
- Parameters:
targetField
- target field- Returns:
- target collection count
-
determineSourceCollectionCount
Description copied from interface:AtlasCollectionHelper
Determines source collection count based on path and actions.- Specified by:
determineSourceCollectionCount
in interfaceAtlasCollectionHelper
- Parameters:
sourceParentField
- source parent fieldsourceField
- source field- Returns:
- source collection count
-
copyCollectionIndexes
public void copyCollectionIndexes(Field sourceParentField, Field sourceField, Field targetField, Field previousTargetField) Description copied from interface:AtlasCollectionHelper
Copies over collection indexes from source to target applying adjustments if collection counts differ.- Specified by:
copyCollectionIndexes
in interfaceAtlasCollectionHelper
- Parameters:
sourceParentField
- source parent fieldsourceField
- source fieldtargetField
- target fieldpreviousTargetField
- previous target fiend
-