+ @NonNull Collection<? extends DataObjectModification<? extends DataObject>> getModifiedChildren();
+
+ /**
+ * Returns child list item modification if {@code child} was modified by this modification. This method should be
+ * used if the child is defined in a grouping brought into a case inside this object.
+ *
+ * @param caseType Case type class
+ * @param childType Type of list item - must be list item with key
+ * @return Modification of {@code child} if {@code child} was modified, null otherwise.
+ * @throws IllegalArgumentException If supplied {@code childType} class is not valid child according
+ * to generated model.
+ */
+ default <H extends ChoiceIn<? super T> & DataObject, C extends ChildOf<? super H>>
+ Collection<DataObjectModification<C>> getModifiedChildren(final @NonNull Class<H> caseType,
+ final @NonNull Class<C> childType) {
+ final Item<C> item = Item.of(caseType, childType);
+ return (Collection<DataObjectModification<C>>) Collections2.filter(getModifiedChildren(),
+ mod -> item.equals(mod.getIdentifier()));
+ }
+
+ /**
+ * Returns container child modification if {@code child} was modified by this modification. This method should be
+ * used if the child is defined in a grouping brought into a case inside this object.
+ *
+ * <p>
+ * For accessing all modified list items consider iterating over {@link #getModifiedChildren()}.
+ *
+ * @param caseType Case type class
+ * @param child Type of child - must be only container
+ * @return Modification of {@code child} if {@code child} was modified, null otherwise.
+ * @throws IllegalArgumentException If supplied {@code child} class is not valid child according
+ * to generated model.
+ */
+ default @Nullable <H extends ChoiceIn<? super T> & DataObject, C extends ChildOf<? super H>>
+ DataObjectModification<C> getModifiedChildContainer(final @NonNull Class<H> caseType,
+ final @NonNull Class<C> child) {
+ return (DataObjectModification<C>) getModifiedChild(Item.of(caseType, child));
+ }
+
+ /**
+ * Returns container child modification if {@code child} was modified by this modification.
+ *
+ * <p>
+ * For accessing all modified list items consider iterating over {@link #getModifiedChildren()}.
+ *
+ * @param child Type of child - must be only container
+ * @return Modification of {@code child} if {@code child} was modified, null otherwise.
+ * @throws IllegalArgumentException If supplied {@code child} class is not valid child according
+ * to generated model.
+ */
+ @Nullable <C extends ChildOf<? super T>> DataObjectModification<C> getModifiedChildContainer(
+ @NonNull Class<C> child);
+
+ /**
+ * Returns augmentation child modification if {@code augmentation} was modified by this modification.
+ *
+ * <p>
+ * For accessing all modified list items consider iterating over {@link #getModifiedChildren()}.
+ *
+ * @param augmentation Type of augmentation - must be only container
+ * @return Modification of {@code augmentation} if {@code augmentation} was modified, null otherwise.
+ * @throws IllegalArgumentException If supplied {@code augmentation} class is not valid augmentation
+ * according to generated model.
+ */
+ @Nullable <C extends Augmentation<T> & DataObject> DataObjectModification<C> getModifiedAugmentation(
+ @NonNull Class<C> augmentation);
+
+ /**
+ * Returns child list item modification if {@code child} was modified by this modification.
+ *
+ * @param listItem Type of list item - must be list item with key
+ * @param listKey List item key
+ * @return Modification of {@code child} if {@code child} was modified, null otherwise.
+ * @throws IllegalArgumentException If supplied {@code listItem} class is not valid child according
+ * to generated model.
+ */
+ <N extends Identifiable<K> & ChildOf<? super T>, K extends Identifier<N>> DataObjectModification<N>
+ getModifiedChildListItem(@NonNull Class<N> listItem, @NonNull K listKey);