public class ChildDeltaCreator extends Object
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 and Description |
|---|
ChildDeltaCreator(String association,
AssociationKind kind,
IDeltaComputationOptions options)
Instantiates the creator for the given association name, kind and
IDeltaComputationOptions. |
ChildDeltaCreator(String association,
IDeltaComputationOptions options)
Deprecated.
since 19.12. Use
ChildDeltaCreator(String, AssociationKind, IDeltaComputationOptions)
instead. |
| Modifier and Type | Method and Description |
|---|---|
void |
createChildDeltas(ModelObjectDelta delta,
IModelObject original,
IModelObject refObject)
Create and add a child delta for the comparison of original and reference model object.
|
void |
createChildDeltas(ModelObjectDelta delta,
List<? extends IModelObject> originals,
List<? extends IModelObject> refObjects)
Create and add all child deltas for the list of associated objects.
|
@Deprecated public ChildDeltaCreator(String association, IDeltaComputationOptions options)
ChildDeltaCreator(String, AssociationKind, IDeltaComputationOptions)
instead.IDeltaComputationOptions.association - The name of the association, will be provided to the created deltaoptions - The IDeltaComputationOptions that configures some behavior of delta
computationpublic ChildDeltaCreator(String association, AssociationKind kind, IDeltaComputationOptions options)
IDeltaComputationOptions.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 - The IDeltaComputationOptions that configures some behavior of delta
computationpublic void createChildDeltas(ModelObjectDelta delta, IModelObject original, IModelObject refObject)
The objects are compared according to the IDeltaComputationOptions. If one of the
objects no longer exists, null is given to the appropriate parameter.
delta - The delta to which the child deltas are addedoriginal - The associated object of the original model object or null if there
is no object referencesrefObject - The associated object of the reference model object or null if there
is no object referencespublic void createChildDeltas(ModelObjectDelta delta, List<? extends IModelObject> originals, List<? extends IModelObject> refObjects)
IDeltaComputationOptions.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 objectCopyright © 2020. All rights reserved.