X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=controller.git;a=blobdiff_plain;f=opendaylight%2Fmd-sal%2Fsal-dom-broker%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fmd%2Fsal%2Fdom%2Fstore%2Fimpl%2Ftree%2Fdata%2FNodeModification.java;h=e7e79f891687592db4ac45a14eb558dae20c085b;hp=2639d050efe28b8b0903636e987b5c134e79c922;hb=ce0f8ee50fbbc078c679bbf6305442e3aa2a2cfb;hpb=c78ba1f70be123609b88f43ce40f8555f1bc2ec7 diff --git a/opendaylight/md-sal/sal-dom-broker/src/main/java/org/opendaylight/controller/md/sal/dom/store/impl/tree/data/NodeModification.java b/opendaylight/md-sal/sal-dom-broker/src/main/java/org/opendaylight/controller/md/sal/dom/store/impl/tree/data/NodeModification.java index 2639d050ef..e7e79f8916 100644 --- a/opendaylight/md-sal/sal-dom-broker/src/main/java/org/opendaylight/controller/md/sal/dom/store/impl/tree/data/NodeModification.java +++ b/opendaylight/md-sal/sal-dom-broker/src/main/java/org/opendaylight/controller/md/sal/dom/store/impl/tree/data/NodeModification.java @@ -14,8 +14,31 @@ import org.opendaylight.yangtools.yang.data.api.InstanceIdentifier.PathArgument; import com.google.common.base.Optional; +/** + * Internal interface representing a modification action of a particular node. + * It is used by the validation code to allow for a read-only view of the + * modification tree as we should never modify that during validation. + */ interface NodeModification extends Identifiable { + /** + * Get the type of modification. + * + * @return Modification type. + */ ModificationType getType(); + + /** + * Get the original tree node to which the modification is to be applied. + * + * @return The original node, or {@link Optional#absent()} if the node is + * a new node. + */ Optional getOriginal(); + + /** + * Get a read-only view of children nodes. + * + * @return Iterable of all children nodes. + */ Iterable getChildren(); }