2 * Copyright (c) 2013 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.yangtools.yang.data.api;
12 * @author michal.rehak
14 * @deprecated Use {@link NormalizedNodeUtils} instead.
17 public interface NodeModificationBuilder {
19 Node<?> getMutableEquivalent(Node<?> originalNode);
21 CompositeNode buildDiffTree();
23 void mergeNode(MutableCompositeNode alteredNode);
25 void removeNode(MutableCompositeNode deadNode);
27 void removeNode(MutableSimpleNode<?> deadNode);
29 void deleteNode(MutableSimpleNode<?> deadNode);
31 void deleteNode(MutableCompositeNode deadNode);
33 void replaceNode(MutableCompositeNode replacementNode);
35 void replaceNode(MutableSimpleNode<?> replacementNode);
37 void addNode(MutableCompositeNode newNode);
39 void addNode(MutableSimpleNode<?> newNode);