2 * Copyright (c) 2015 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.binding.api;
10 import org.eclipse.jdt.annotation.NonNull;
11 import org.opendaylight.yangtools.yang.binding.DataObject;
14 * Represent root of modification.
16 * @author Tony Tkacik <ttkacik@cisco.com>
19 public interface DataTreeModification<T extends DataObject> {
22 * Get the modification root path. This is the path of the root node
23 * relative to the root of InstanceIdentifier namespace.
25 * @return absolute path of the root node
27 @NonNull DataTreeIdentifier<T> getRootPath();
30 * Get the modification root node.
32 * @return modification root node
34 @NonNull DataObjectModification<T> getRootNode();