X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=opendaylight%2Fmd-sal%2Fsal-binding-api%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fmd%2Fsal%2Fbinding%2Fapi%2FDataObjectModification.java;h=afeb21c5309c819e0b1faafca2ac2e156761d3dc;hb=290c0b22aa7bbab9b663fbf08badff43bb47a897;hp=678ac34e39d25d54fc12316fc17df1d51c5ed28f;hpb=bcc66b3ee07a3bc18176418c4cd211596f49f2f0;p=controller.git diff --git a/opendaylight/md-sal/sal-binding-api/src/main/java/org/opendaylight/controller/md/sal/binding/api/DataObjectModification.java b/opendaylight/md-sal/sal-binding-api/src/main/java/org/opendaylight/controller/md/sal/binding/api/DataObjectModification.java index 678ac34e39..afeb21c530 100644 --- a/opendaylight/md-sal/sal-binding-api/src/main/java/org/opendaylight/controller/md/sal/binding/api/DataObjectModification.java +++ b/opendaylight/md-sal/sal-binding-api/src/main/java/org/opendaylight/controller/md/sal/binding/api/DataObjectModification.java @@ -3,8 +3,9 @@ * * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0 which accompanies this distribution, - * and is available at http://www.eclipse.org/legal/epl-v10.html. + * and is available at http://www.eclipse.org/legal/epl-v10.html */ + package org.opendaylight.controller.md.sal.binding.api; import java.util.Collection; @@ -65,7 +66,17 @@ public interface DataObjectModification extends org.openda @Nonnull ModificationType getModificationType(); /** - * Returns after state of top level container. + * Returns before-state of top level container. Implementations are encouraged, + * but not required to provide this state. + * + * @param root Class representing data container + * @return State of object before modification. Null if subtree was not present, + * or the implementation cannot provide the state. + */ + @Nullable T getDataBefore(); + + /** + * Returns after-state of top level container. * * @param root Class representing data container * @return State of object after modification. Null if subtree is not present.