X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=opendaylight%2Fmd-sal%2Fsal-common-api%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fmd%2Fsal%2Fcommon%2Fapi%2Fdata%2FDataChange.java;h=ebffbcc811747307f2a3a67a7b83cb403d5757c2;hb=ea4f0324d3384918491ed9cc844f53a918a541e8;hp=55565252a2b7a408579f46e05b9794cbe707d81a;hpb=c19766901dce1994ef2432f356b32d539b6c43cc;p=controller.git diff --git a/opendaylight/md-sal/sal-common-api/src/main/java/org/opendaylight/controller/md/sal/common/api/data/DataChange.java b/opendaylight/md-sal/sal-common-api/src/main/java/org/opendaylight/controller/md/sal/common/api/data/DataChange.java index 55565252a2..ebffbcc811 100644 --- a/opendaylight/md-sal/sal-common-api/src/main/java/org/opendaylight/controller/md/sal/common/api/data/DataChange.java +++ b/opendaylight/md-sal/sal-common-api/src/main/java/org/opendaylight/controller/md/sal/common/api/data/DataChange.java @@ -10,105 +10,77 @@ package org.opendaylight.controller.md.sal.common.api.data; import java.util.Map; import java.util.Set; -// FIXME: After 0.6 Release of YANGTools refactor to use Path marker interface for arguments. -// import org.opendaylight.yangtools.concepts.Path; +import org.opendaylight.yangtools.concepts.Path; -public interface DataChange

*/, D> { +public interface DataChange

, D> { /** * Returns a map of paths and newly created objects - * + * * @return map of paths and newly created objects */ Map getCreatedOperationalData(); /** * Returns a map of paths and newly created objects - * + * * @return map of paths and newly created objects */ Map getCreatedConfigurationData(); /** * Returns a map of paths and respective updated objects after update. - * + * * Original state of the object is in * {@link #getOriginalOperationalData()} - * + * * @return map of paths and newly created objects */ Map getUpdatedOperationalData(); /** * Returns a map of paths and respective updated objects after update. - * + * * Original state of the object is in * {@link #getOriginalConfigurationData()} - * + * * @return map of paths and newly created objects */ Map getUpdatedConfigurationData(); + + /** * Returns a set of paths of removed objects. - * + * * Original state of the object is in * {@link #getOriginalConfigurationData()} - * + * * @return map of paths and newly created objects */ Set

getRemovedConfigurationData(); /** * Returns a set of paths of removed objects. - * + * * Original state of the object is in * {@link #getOriginalOperationalData()} - * + * * @return map of paths and newly created objects */ Set

getRemovedOperationalData(); /** * Return a map of paths and original state of updated and removed objectd. - * + * * @return map of paths and original state of updated and removed objectd. */ Map getOriginalConfigurationData(); /** * Return a map of paths and original state of updated and removed objectd. - * + * * @return map of paths and original state of updated and removed objectd. */ Map getOriginalOperationalData(); - - /** - * Returns a original subtree of data, which starts at the path - * where listener was registered. - * - */ - D getOriginalConfigurationSubtree(); - - /** - * Returns a original subtree of data, which starts at the path - * where listener was registered. - * - */ - D getOriginalOperationalSubtree(); - - /** - * Returns a new subtree of data, which starts at the path - * where listener was registered. - * - */ - D getUpdatedConfigurationSubtree(); - - /** - * Returns a new subtree of data, which starts at the path - * where listener was registered. - * - */ - D getUpdatedOperationalSubtree(); - }