Class ChildDeltaCreator

java.lang.Object
org.faktorips.runtime.internal.delta.ChildDeltaCreator

public class ChildDeltaCreator extends Object
Internal utility class to create ModelObjectDelta for associations.

Note that this is an internal utility class whose API may not be stable and thus should not be called by client code directly.

  • Constructor Details

  • Method Details

    • createChildDeltas

      public void createChildDeltas(ModelObjectDelta delta, IModelObject original, IModelObject refObject)
      Create and add a child delta for the comparison of original and reference model object.

      The objects are compared according to the IDeltaComputationOptions. If one of the objects no longer exists, null is given to the appropriate parameter.

      Parameters:
      delta - The delta to which the child deltas are added
      original - The associated object of the original model object or null if there is no object references
      refObject - The associated object of the reference model object or null if there is no object references
    • createChildDeltas

      public void createChildDeltas(ModelObjectDelta delta, List<? extends IModelObject> originals, List<? extends IModelObject> refObjects)
      Create and add all child deltas for the list of associated objects. The objects are compared according to the IDeltaComputationOptions.
      Parameters:
      delta - The delta to which the child deltas are added
      originals - The list of associated objects of the original model object
      refObjects - The list of associated objects of the reference model object