T - Type of modified objectpublic interface DataObjectModification<T extends DataObject> extends org.opendaylight.yangtools.concepts.Identifiable<InstanceIdentifier.PathArgument>
getModificationType().| Modifier and Type | Interface and Description |
|---|---|
static class |
DataObjectModification.ModificationType
Represents type of modification which has occurred.
|
| Modifier and Type | Method and Description |
|---|---|
T |
getDataAfter()
Returns after-state of top level container.
|
T |
getDataBefore()
Returns before-state of top level container.
|
@NonNull Class<T> |
getDataType()
Returns type of modified object.
|
InstanceIdentifier.PathArgument |
getIdentifier() |
@NonNull DataObjectModification.ModificationType |
getModificationType()
Returns type of modification.
|
<C extends Augmentation<T> & DataObject> |
getModifiedAugmentation(@NonNull Class<C> augmentation)
Returns augmentation child modification if
augmentation was modified by this modification. |
@Nullable DataObjectModification<? extends DataObject> |
getModifiedChild(InstanceIdentifier.PathArgument childArgument)
Returns a child modification if a node identified by
childArgument was modified by this modification. |
<C extends ChildOf<? super T>> |
getModifiedChildContainer(@NonNull Class<C> child)
Returns container child modification if
child was modified by this
modification. |
<H extends ChoiceIn<? super T> & DataObject,C extends ChildOf<? super H>> |
getModifiedChildContainer(@NonNull Class<H> caseType,
@NonNull Class<C> child)
Returns container child modification if
child was modified by this modification. |
<H extends ChoiceIn<? super T> & DataObject,C extends Identifiable<K> & ChildOf<? super H>,K extends Identifier<C>> |
getModifiedChildListItem(@NonNull Class<H> caseType,
@NonNull Class<C> listItem,
K listKey)
Returns child list item modification if
child was modified by this modification. |
<N extends Identifiable<K> & ChildOf<? super T>,K extends Identifier<N>> |
getModifiedChildListItem(@NonNull Class<N> listItem,
K listKey)
Returns child list item modification if
child was modified by this modification. |
@NonNull Collection<? extends DataObjectModification<? extends DataObject>> |
getModifiedChildren()
Returns unmodifiable collection of modified direct children.
|
<C extends ChildOf<? super T>> |
getModifiedChildren(@NonNull Class<C> childType)
Returns child list item modification if
child was modified by this modification. |
<H extends ChoiceIn<? super T> & DataObject,C extends ChildOf<? super H>> |
getModifiedChildren(@NonNull Class<H> caseType,
@NonNull Class<C> childType)
Returns child list item modification if
child was modified by this modification. |
InstanceIdentifier.PathArgument getIdentifier()
getIdentifier in interface org.opendaylight.yangtools.concepts.Identifiable<InstanceIdentifier.PathArgument>@NonNull Class<T> getDataType()
@NonNull DataObjectModification.ModificationType getModificationType()
T getDataBefore()
T getDataAfter()
@NonNull Collection<? extends DataObjectModification<? extends DataObject>> getModifiedChildren()
<C extends ChildOf<? super T>> Collection<DataObjectModification<C>> getModifiedChildren(@NonNull Class<C> childType)
child was modified by this modification.childType - Type of list item - must be list item with keychild if child was modified, null otherwise.IllegalArgumentException - If supplied childType class is not valid child according
to generated model.<H extends ChoiceIn<? super T> & DataObject,C extends ChildOf<? super H>> Collection<DataObjectModification<C>> getModifiedChildren(@NonNull Class<H> caseType, @NonNull Class<C> childType)
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.caseType - Case type classchildType - Type of list item - must be list item with keychild if child was modified, null otherwise.IllegalArgumentException - If supplied childType class is not valid child according
to generated model.<H extends ChoiceIn<? super T> & DataObject,C extends ChildOf<? super H>> @Nullable DataObjectModification<C> getModifiedChildContainer(@NonNull Class<H> caseType, @NonNull Class<C> child)
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.
For accessing all modified list items consider iterating over getModifiedChildren().
caseType - Case type classchild - Type of child - must be only containerchild if child was modified, null otherwise.IllegalArgumentException - If supplied child class is not valid child according
to generated model.<C extends ChildOf<? super T>> @Nullable DataObjectModification<C> getModifiedChildContainer(@NonNull Class<C> child)
child was modified by this
modification.
For accessing all modified list items consider iterating over getModifiedChildren().
child - Type of child - must be only containerchild if child was modified, null otherwise.IllegalArgumentException - If supplied child class is not valid child according
to generated model.<C extends Augmentation<T> & DataObject> @Nullable DataObjectModification<C> getModifiedAugmentation(@NonNull Class<C> augmentation)
augmentation was modified by this modification.
For accessing all modified list items consider iterating over getModifiedChildren().
augmentation - Type of augmentation - must be only containeraugmentation if augmentation was modified, null otherwise.IllegalArgumentException - If supplied augmentation class is not valid augmentation
according to generated model.<N extends Identifiable<K> & ChildOf<? super T>,K extends Identifier<N>> @Nullable DataObjectModification<N> getModifiedChildListItem(@NonNull Class<N> listItem, K listKey)
child was modified by this modification.listItem - Type of list item - must be list item with keylistKey - List item keychild if child was modified, null otherwise.IllegalArgumentException - If supplied listItem class is not valid child according
to generated model.<H extends ChoiceIn<? super T> & DataObject,C extends Identifiable<K> & ChildOf<? super H>,K extends Identifier<C>> @Nullable DataObjectModification<C> getModifiedChildListItem(@NonNull Class<H> caseType, @NonNull Class<C> listItem, K listKey)
child was modified by this modification.listItem - Type of list item - must be list item with keylistKey - List item keychild if child was modified, null otherwise.IllegalArgumentException - If supplied listItem class is not valid child according
to generated model.@Nullable DataObjectModification<? extends DataObject> getModifiedChild(InstanceIdentifier.PathArgument childArgument)
childArgument was modified by this modification.childArgument - Path Argument of child nodechildArgument if childArgument
was modified, null otherwise.IllegalArgumentException - If supplied path argument is not valid child according to
generated model.Copyright © 2019 OpenDaylight. All rights reserved.