first implementation of yang-data-api
[controller.git] / opendaylight / sal / yang-prototype / yang / yang-data-api / src / main / java / org / opendaylight / controller / yang / data / api / MutableNode.java
1 /*\r
2  * Copyright (c) 2013 Cisco Systems, Inc. and others.  All rights reserved.\r
3  *\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
7  */\r
8 package org.opendaylight.controller.yang.data.api;\r
9 \r
10 \r
11 /**\r
12  * Base representation of node in the data tree, defines basic parameters of\r
13  * node such as a QName.\r
14  * \r
15  * \r
16  * @param <T>\r
17  */\r
18 public interface MutableNode<T> extends Node<T> {\r
19 \r
20     /**\r
21      * @param parent value to set\r
22      */\r
23     void setParent(CompositeNode parent);\r
24     \r
25     /**\r
26      * @param value value to set (children list or leaf value)\r
27      */\r
28     void setValue(T value);\r
29     \r
30     /**\r
31      * @param action value to set\r
32      */\r
33     void setModifyAction(ModifyAction action);\r
34 }\r