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.
|
@NonNull Class<T> |
getDataType()
Returns type of modified object.
|
org.opendaylight.yangtools.yang.binding.InstanceIdentifier.PathArgument |
getIdentifier() |
@NonNull DataObjectModification.ModificationType |
getModificationType()
Returns type of modification.
|
<C extends org.opendaylight.yangtools.yang.binding.Augmentation<T> & org.opendaylight.yangtools.yang.binding.DataObject> |
getModifiedAugmentation(@NonNull Class<C> augmentation)
Returns augmentation child modification if
augmentation was modified by this modification. |
@Nullable 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(@NonNull 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(@NonNull Class<H> caseType,
@NonNull 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(@NonNull Class<H> caseType,
@NonNull 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(@NonNull Class<N> listItem,
K listKey)
Returns child list item modification if
child was modified by this modification. |
@NonNull 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(@NonNull Class<H> caseType,
@NonNull 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()
T getDataBefore()
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.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>> @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 org.opendaylight.yangtools.yang.binding.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 org.opendaylight.yangtools.yang.binding.Augmentation<T> & org.opendaylight.yangtools.yang.binding.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 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, 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, 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.