T - Type of modified object@Beta public interface TreeNodeModification<T extends TreeNode> extends org.opendaylight.yangtools.concepts.Identifiable<TreeArgument>
Represents modification of tree node TreeNode
| Modifier and Type | Interface and Description |
|---|---|
static class |
TreeNodeModification.ModificationType
Represents type of modification which has occured.
|
| Modifier and Type | Method and Description |
|---|---|
T |
getDataAfter()
Returns after-state of top level container.
|
T |
getDataBefore()
Returns before-state of top level container.
|
Class<T> |
getDataType()
Returns type of modified object.
|
TreeArgument |
getIdentifier() |
TreeNodeModification.ModificationType |
getModificationType()
Returns type of modification.
|
<C extends Augmentation<T> & TreeNode> |
getModifiedAugmentation(Class<C> augmentation)
Returns augmentation child modification if
augmentation was modified by this
modification. |
TreeNodeModification<? extends TreeNode> |
getModifiedChild(TreeArgument childArgument)
Returns a child modification if a node identified by
childArgument was modified by
this modification. |
<C extends TreeChildNode<? super T,?>> |
getModifiedChildContainer(Class<C> child)
Returns container child modification if
child was modified by this
modification. |
<C extends IdentifiableItem<T,K> & TreeChildNode<? super T,?>,K extends IdentifiableItem<T,K>> |
getModifiedChildListItem(Class<C> listItem,
K listKey)
Returns child list item modification if
child was modified by this modification. |
Collection<TreeNodeModification<? extends TreeNode>> |
getModifiedChildren()
Returns unmodifiable collection of modified direct children.
|
<C extends TreeChildNode<? super T,?>> |
getModifiedChildren(Class<C> childType)
Returns child list item modification if
child was modified by this modification. |
@Nonnull TreeArgument getIdentifier()
getIdentifier in interface org.opendaylight.yangtools.concepts.Identifiable<TreeArgument>@Nonnull Class<T> getDataType()
@Nonnull TreeNodeModification.ModificationType getModificationType()
@Nullable T getDataBefore()
@Nullable T getDataAfter()
@Nonnull Collection<TreeNodeModification<? extends TreeNode>> getModifiedChildren()
<C extends TreeChildNode<? super T,?>> Collection<TreeNodeModification<C>> getModifiedChildren(@Nonnull Class<C> childType)
child was modified by this modification.C - type of child 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.@Nullable <C extends TreeChildNode<? super T,?>> TreeNodeModification<C> getModifiedChildContainer(@Nonnull Class<C> child)
child was modified by this
modification.
For accessing all modified list items consider iterating over getModifiedChildren().
C - type of child 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.@Nullable <C extends Augmentation<T> & TreeNode> TreeNodeModification<C> getModifiedAugmentation(@Nonnull Class<C> augmentation)
augmentation was modified by this
modification.
For accessing all modified list items consider iterating over getModifiedChildren().
C - type of augmentation classaugmentation - 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.<C extends IdentifiableItem<T,K> & TreeChildNode<? super T,?>,K extends IdentifiableItem<T,K>> TreeNodeModification<C> getModifiedChildListItem(@Nonnull Class<C> listItem, @Nonnull K listKey)
child was modified by this modification.C - type of list item classK - type of list keylistItem - 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 TreeNodeModification<? extends TreeNode> getModifiedChild(TreeArgument 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.