Fix action invocation and registration
[mdsal.git] / binding / mdsal-binding-api / src / main / java / org / opendaylight / mdsal / 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.mdsal.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 public interface DataTreeModification<T extends DataObject> {
19     /**
20      * Get the modification root path. This is the path of the root node relative to the root of InstanceIdentifier
21      * namespace.
22      *
23      * @return absolute path of the root node
24      */
25     @NonNull DataTreeIdentifier<T> getRootPath();
26
27     /**
28      * Get the modification root node.
29      *
30      * @return modification root node
31      */
32     @NonNull DataObjectModification<T> getRootNode();
33 }