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.
9 package org.opendaylight.controller.md.sal.binding.api;
11 import javax.annotation.Nonnull;
12 import org.opendaylight.yangtools.yang.binding.DataObject;
15 * Represent root of modification.
17 * @author Tony Tkacik <ttkacik@cisco.com>
20 public interface DataTreeModification {
23 * Get the modification root path. This is the path of the root node
24 * relative to the root of InstanceIdentifier namespace.
26 * @return absolute path of the root node
28 @Nonnull DataTreeIdentifier getRootPath();
31 * Get the modification root node.
33 * @return modification root node
35 @Nonnull DataObjectModification<? extends DataObject> getRootNode();