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