X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=opendaylight%2Fmd-sal%2Fsal-dom-broker%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fmd%2Fsal%2Fdom%2Fstore%2Fimpl%2Ftree%2FModificationType.java;h=b9a26f5c00be0b6cf45775e141d22728b1d22ee2;hb=8ed8fa9905f7187797c771bef12c14596a3e2da7;hp=199d90252ea8a2399baf9cad41e88dd02f561548;hpb=721b580748cb93b3dac952ff1f111d0ab0da0c79;p=controller.git diff --git a/opendaylight/md-sal/sal-dom-broker/src/main/java/org/opendaylight/controller/md/sal/dom/store/impl/tree/ModificationType.java b/opendaylight/md-sal/sal-dom-broker/src/main/java/org/opendaylight/controller/md/sal/dom/store/impl/tree/ModificationType.java index 199d90252e..b9a26f5c00 100644 --- a/opendaylight/md-sal/sal-dom-broker/src/main/java/org/opendaylight/controller/md/sal/dom/store/impl/tree/ModificationType.java +++ b/opendaylight/md-sal/sal-dom-broker/src/main/java/org/opendaylight/controller/md/sal/dom/store/impl/tree/ModificationType.java @@ -7,30 +7,39 @@ */ package org.opendaylight.controller.md.sal.dom.store.impl.tree; +/** + * Enumeration of all possible node modification states. These are used in + * data tree modification context to quickly assess what sort of modification + * the node is undergoing. + */ public enum ModificationType { - /** - * - * Node is unmodified - * - * + * Node is currently unmodified. */ UNMODIFIED, + /** - * - * Child of tree node was modified - * + * A child node, either direct or indirect, has been modified. This means + * that the data representation of this node has potentially changed. */ SUBTREE_MODIFIED, + /** - * Tree node was replaced with new value / subtree - * + * This node has been placed into the tree, potentially completely replacing + * pre-existing contents. */ WRITE, + + /** + * This node has been deleted along with any of its child nodes. + */ + DELETE, + /** - * - * Tree node is to be deleted. - * + * Node has been written into the tree, but instead of replacing pre-existing + * contents, it has been merged. This means that any incoming nodes which + * were present in the tree have been replaced, but their child nodes have + * been retained. */ - DELETE + MERGE, }