2e4a1710dcf0b3042402b18660febc77f93d7451
[controller.git] / opendaylight / md-sal / sal-binding-api / src / main / java / org / opendaylight / controller / md / sal / binding / api / DataTreeModification.java
1 /*
2  * Copyright (c) 2015 Cisco Systems, Inc. and others.  All rights reserved.
3  *
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
7  */
8 package org.opendaylight.controller.md.sal.binding.api;
9
10 import org.eclipse.jdt.annotation.NonNull;
11 import org.opendaylight.yangtools.yang.binding.DataObject;
12
13 /**
14  * Represent root of modification.
15  *
16  * @author Tony Tkacik <ttkacik@cisco.com>
17  *
18  * @deprecated Use {@link org.opendaylight.mdsal.binding.api.DataTreeModification} instead.
19  */
20 @Deprecated
21 public interface DataTreeModification<T extends DataObject> {
22
23     /**
24      * Get the modification root path. This is the path of the root node
25      * relative to the root of InstanceIdentifier namespace.
26      *
27      * @return absolute path of the root node
28      */
29     @NonNull DataTreeIdentifier<T> getRootPath();
30
31     /**
32      * Get the modification root node.
33      *
34      * @return modification root node
35      */
36     @NonNull DataObjectModification<T> getRootNode();
37 }

©2013 OpenDaylight, A Linux Foundation Collaborative Project. All Rights Reserved.
OpenDaylight is a registered trademark of The OpenDaylight Project, Inc.
Linux Foundation and OpenDaylight are registered trademarks of the Linux Foundation.
Linux is a registered trademark of Linus Torvalds.