2 * Copyright (c) 2013 Cisco Systems, Inc. and others. All rights reserved.
4 * This program and the accompanying materials are made available under the
5 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 * and is available at http://www.eclipse.org/legal/epl-v10.html
8 package org.opendaylight.controller.md.sal.common.api.data;
13 // FIXME: After 0.6 Release of YANGTools refactor to use Path marker interface for arguments.
14 // import org.opendaylight.yangtools.concepts.Path;
16 public interface DataChange<P/* extends Path<P> */, D> {
19 * Returns a map of paths and newly created objects
21 * @return map of paths and newly created objects
23 Map<P, D> getCreatedOperationalData();
26 * Returns a map of paths and newly created objects
28 * @return map of paths and newly created objects
30 Map<P, D> getCreatedConfigurationData();
33 * Returns a map of paths and respective updated objects after update.
35 * Original state of the object is in
36 * {@link #getOriginalOperationalData()}
38 * @return map of paths and newly created objects
40 Map<P, D> getUpdatedOperationalData();
43 * Returns a map of paths and respective updated objects after update.
45 * Original state of the object is in
46 * {@link #getOriginalConfigurationData()}
48 * @return map of paths and newly created objects
50 Map<P, D> getUpdatedConfigurationData();
55 * Returns a set of paths of removed objects.
57 * Original state of the object is in
58 * {@link #getOriginalConfigurationData()}
60 * @return map of paths and newly created objects
62 Set<P> getRemovedConfigurationData();
65 * Returns a set of paths of removed objects.
67 * Original state of the object is in
68 * {@link #getOriginalOperationalData()}
70 * @return map of paths and newly created objects
72 Set<P> getRemovedOperationalData();
75 * Return a map of paths and original state of updated and removed objectd.
77 * @return map of paths and original state of updated and removed objectd.
79 Map<P, D> getOriginalConfigurationData();
82 * Return a map of paths and original state of updated and removed objectd.
84 * @return map of paths and original state of updated and removed objectd.
86 Map<P, D> getOriginalOperationalData();