Class ChildDeltaCreator
java.lang.Object
org.faktorips.runtime.internal.delta.ChildDeltaCreator
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 Summary
ConstructorsConstructorDescriptionChildDeltaCreator(String association, IDeltaComputationOptions options) Deprecated.since 19.12.ChildDeltaCreator(String association, AssociationKind kind, IDeltaComputationOptions options) Instantiates the creator for the given association name, kind andIDeltaComputationOptions. -
Method Summary
Modifier and TypeMethodDescriptionvoidcreateChildDeltas(ModelObjectDelta delta, List<? extends IModelObject> originals, List<? extends IModelObject> refObjects) Create and add all child deltas for the list of associated objects.voidcreateChildDeltas(ModelObjectDelta delta, IModelObject original, IModelObject refObject) Create and add a child delta for the comparison of original and reference model object.
-
Constructor Details
-
ChildDeltaCreator
Deprecated.since 19.12. UseChildDeltaCreator(String, AssociationKind, IDeltaComputationOptions)instead.Instantiates the creator for the given association name, kind andIDeltaComputationOptions.- Parameters:
association- The name of the association, will be provided to the created deltaoptions- TheIDeltaComputationOptionsthat configures some behavior of delta computation
-
ChildDeltaCreator
public ChildDeltaCreator(String association, AssociationKind kind, IDeltaComputationOptions options) Instantiates the creator for the given association name, kind andIDeltaComputationOptions.- Parameters:
association- The name of the association, will be provided to the created deltakind- The kind of the association, needed to decide whether to follow an association recursively or notoptions- TheIDeltaComputationOptionsthat configures some behavior of delta computation
-
-
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,nullis given to the appropriate parameter.- Parameters:
delta- The delta to which the child deltas are addedoriginal- The associated object of the original model object ornullif there is no object referencesrefObject- The associated object of the reference model object ornullif 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 theIDeltaComputationOptions.- Parameters:
delta- The delta to which the child deltas are addedoriginals- The list of associated objects of the original model objectrefObjects- The list of associated objects of the reference model object
-