public interface DataObjectModification<T extends org.opendaylight.yangtools.yang.binding.DataObject>
extends org.opendaylight.yangtools.concepts.Identifiable<org.opendaylight.yangtools.yang.binding.InstanceIdentifier.PathArgument>
Modifier and Type | Interface and Description |
---|---|
static class |
DataObjectModification.ModificationType |
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.
|
org.opendaylight.yangtools.yang.binding.InstanceIdentifier.PathArgument |
getIdentifier() |
DataObjectModification.ModificationType |
getModificationType()
Returns type of modification.
|
<C extends org.opendaylight.yangtools.yang.binding.Augmentation<T> & org.opendaylight.yangtools.yang.binding.DataObject> |
getModifiedAugmentation(Class<C> augmentation)
Returns augmentation child modification if
augmentation was modified by this modification. |
DataObjectModification<? extends org.opendaylight.yangtools.yang.binding.DataObject> |
getModifiedChild(org.opendaylight.yangtools.yang.binding.InstanceIdentifier.PathArgument childArgument)
Returns a child modification if a node identified by
childArgument was modified by
this modification. |
<C extends org.opendaylight.yangtools.yang.binding.ChildOf<? super T>> |
getModifiedChildContainer(Class<C> child)
Returns container child modification if
child was modified by this modification. |
default <H extends org.opendaylight.yangtools.yang.binding.ChoiceIn<? super T> & org.opendaylight.yangtools.yang.binding.DataObject,C extends org.opendaylight.yangtools.yang.binding.ChildOf<? super H>> |
getModifiedChildContainer(Class<H> caseType,
Class<C> child)
Returns container child modification if
child was modified by this modification. |
default <H extends org.opendaylight.yangtools.yang.binding.ChoiceIn<? super T> & org.opendaylight.yangtools.yang.binding.DataObject,C extends org.opendaylight.yangtools.yang.binding.Identifiable<K> & org.opendaylight.yangtools.yang.binding.ChildOf<? super H>,K extends org.opendaylight.yangtools.yang.binding.Identifier<C>> |
getModifiedChildListItem(Class<H> caseType,
Class<C> listItem,
K listKey)
Returns child list item modification if
child was modified by this modification. |
<N extends org.opendaylight.yangtools.yang.binding.Identifiable<K> & org.opendaylight.yangtools.yang.binding.ChildOf<? super T>,K extends org.opendaylight.yangtools.yang.binding.Identifier<N>> |
getModifiedChildListItem(Class<N> listItem,
K listKey)
Returns child list item modification if
child was modified by this modification. |
Collection<? extends DataObjectModification<? extends org.opendaylight.yangtools.yang.binding.DataObject>> |
getModifiedChildren()
Returns unmodifiable collection of modified direct children.
|
default <H extends org.opendaylight.yangtools.yang.binding.ChoiceIn<? super T> & org.opendaylight.yangtools.yang.binding.DataObject,C extends org.opendaylight.yangtools.yang.binding.ChildOf<? super H>> |
getModifiedChildren(Class<H> caseType,
Class<C> childType)
Returns child list item modification if
child was modified by this modification. |
org.opendaylight.yangtools.yang.binding.InstanceIdentifier.PathArgument getIdentifier()
getIdentifier
in interface org.opendaylight.yangtools.concepts.Identifiable<org.opendaylight.yangtools.yang.binding.InstanceIdentifier.PathArgument>
@Nonnull Class<T> getDataType()
@Nonnull DataObjectModification.ModificationType getModificationType()
@Nullable T getDataBefore()
@Nullable T getDataAfter()
@Nonnull Collection<? extends DataObjectModification<? extends org.opendaylight.yangtools.yang.binding.DataObject>> getModifiedChildren()
default <H extends org.opendaylight.yangtools.yang.binding.ChoiceIn<? super T> & org.opendaylight.yangtools.yang.binding.DataObject,C extends org.opendaylight.yangtools.yang.binding.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.@Nullable default <H extends org.opendaylight.yangtools.yang.binding.ChoiceIn<? super T> & org.opendaylight.yangtools.yang.binding.DataObject,C extends org.opendaylight.yangtools.yang.binding.ChildOf<? super H>> 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.@Nullable <C extends org.opendaylight.yangtools.yang.binding.ChildOf<? super T>> 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.@Nullable <C extends org.opendaylight.yangtools.yang.binding.Augmentation<T> & org.opendaylight.yangtools.yang.binding.DataObject> 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 org.opendaylight.yangtools.yang.binding.Identifiable<K> & org.opendaylight.yangtools.yang.binding.ChildOf<? super T>,K extends org.opendaylight.yangtools.yang.binding.Identifier<N>> DataObjectModification<N> getModifiedChildListItem(@Nonnull Class<N> listItem, @Nonnull 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.default <H extends org.opendaylight.yangtools.yang.binding.ChoiceIn<? super T> & org.opendaylight.yangtools.yang.binding.DataObject,C extends org.opendaylight.yangtools.yang.binding.Identifiable<K> & org.opendaylight.yangtools.yang.binding.ChildOf<? super H>,K extends org.opendaylight.yangtools.yang.binding.Identifier<C>> DataObjectModification<C> getModifiedChildListItem(@Nonnull Class<H> caseType, @Nonnull Class<C> listItem, @Nonnull K listKey)
child
was modified by this modification.caseType
- Case type classlistItem
- 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 org.opendaylight.yangtools.yang.binding.DataObject> getModifiedChild(org.opendaylight.yangtools.yang.binding.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.