374c185a1edc7b9d6f01baedefc04771042f313f
[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
9 package org.opendaylight.controller.md.sal.binding.api;
10
11 import javax.annotation.Nonnull;
12 import org.opendaylight.yangtools.yang.binding.DataObject;
13
14 /**
15  * Represent root of modification.
16  *
17  * @author Tony Tkacik <ttkacik@cisco.com>
18  *
19  */
20 public interface DataTreeModification<T extends DataObject> {
21
22     /**
23      * Get the modification root path. This is the path of the root node
24      * relative to the root of InstanceIdentifier namespace.
25      *
26      * @return absolute path of the root node
27      */
28     @Nonnull DataTreeIdentifier<T> getRootPath();
29
30     /**
31      * Get the modification root node.
32      *
33      * @return modification root node
34      */
35     @Nonnull DataObjectModification<T> getRootNode();
36
37 }