Class DefaultAtlasCollectionHelper

java.lang.Object
io.atlasmap.core.DefaultAtlasCollectionHelper
All Implemented Interfaces:
AtlasCollectionHelper
Direct Known Subclasses:
XmlCollectionHelper

public class DefaultAtlasCollectionHelper extends Object implements AtlasCollectionHelper
  • Constructor Details

    • DefaultAtlasCollectionHelper

      public DefaultAtlasCollectionHelper()
    • DefaultAtlasCollectionHelper

      public DefaultAtlasCollectionHelper(AtlasFieldActionService fieldActionService)
  • Method Details

    • createTargetAtlasPath

      protected AtlasPath createTargetAtlasPath(String path)
    • determineTargetCollectionCount

      public int determineTargetCollectionCount(Field targetField)
      Description copied from interface: AtlasCollectionHelper
      Determines target collection count based on path and actions.
      Specified by:
      determineTargetCollectionCount in interface AtlasCollectionHelper
      Parameters:
      targetField - target field
      Returns:
      target collection count
    • determineSourceCollectionCount

      public int determineSourceCollectionCount(Field sourceParentField, Field sourceField)
      Description copied from interface: AtlasCollectionHelper
      Determines source collection count based on path and actions.
      Specified by:
      determineSourceCollectionCount in interface AtlasCollectionHelper
      Parameters:
      sourceParentField - source parent field
      sourceField - 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 interface AtlasCollectionHelper
      Parameters:
      sourceParentField - source parent field
      sourceField - source field
      targetField - target field
      previousTargetField - previous target fiend