2 * Copyright (c) 2013 Cisco Systems, Inc. and others. All rights reserved.
\r
4 * This program and the accompanying materials are made available under the
\r
5 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
\r
6 * and is available at http://www.eclipse.org/legal/epl-v10.html
\r
8 package org.opendaylight.controller.yang.data.api;
\r
12 * @author michal.rehak
\r
15 public interface NodeModificationBuilder {
\r
17 public abstract Node<?> getMutableEquivalent(Node<?> originalNode);
\r
19 public abstract CompositeNode buildDiffTree();
\r
21 public abstract void mergeNode(MutableCompositeNode alteredNode);
\r
23 public abstract void removeNode(MutableCompositeNode deadNode);
\r
25 public abstract void removeNode(MutableSimpleNode<?> deadNode);
\r
27 public abstract void deleteNode(MutableSimpleNode<?> deadNode);
\r
29 public abstract void deleteNode(MutableCompositeNode deadNode);
\r
31 public abstract void replaceNode(MutableCompositeNode replacementNode);
\r
33 public abstract void replaceNode(MutableSimpleNode<?> replacementNode);
\r
35 public abstract void addNode(MutableCompositeNode newNode);
\r
37 public abstract void addNode(MutableSimpleNode<?> newNode);
\r