Added tests for yang.model.util
[yangtools.git] / yang / yang-data-api / src / main / java / org / opendaylight / yangtools / yang / data / api / NodeModificationBuilder.java
1 /*
2  * Copyright (c) 2013 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.yangtools.yang.data.api;
9
10
11 /**
12  * @author michal.rehak
13  *
14  * @deprecated Use {@link NormalizedNodeUtils} instead.
15  */
16 @Deprecated
17 public interface NodeModificationBuilder {
18
19     abstract Node<?> getMutableEquivalent(Node<?> originalNode);
20
21     abstract CompositeNode buildDiffTree();
22
23     abstract void mergeNode(MutableCompositeNode alteredNode);
24
25     abstract void removeNode(MutableCompositeNode deadNode);
26
27     abstract void removeNode(MutableSimpleNode<?> deadNode);
28
29     abstract void deleteNode(MutableSimpleNode<?> deadNode);
30
31     abstract void deleteNode(MutableCompositeNode deadNode);
32
33     abstract void replaceNode(MutableCompositeNode replacementNode);
34
35     abstract void replaceNode(MutableSimpleNode<?> replacementNode);
36
37     abstract void addNode(MutableCompositeNode newNode);
38
39     abstract void addNode(MutableSimpleNode<?> newNode);
40
41 }