groovy node-tree integration
[controller.git] / opendaylight / sal / yang-prototype / yang / yang-data-api / src / main / java / org / opendaylight / controller / yang / data / api / SimpleNode.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  * Simple node represents a leaf in the data tree, which does not contain any\r
12  * nested nodes, but the value of node. In the terms of the XML the simple node\r
13  * is element which contains only text data (CDATA or PCDATA). The simple node\r
14  * is the manifestation of the following data schema constructs in YANG:\r
15  * <ul>\r
16  * <li><b>leaf</b> - simple node could represent YANG leafs of all types except\r
17  * the empty type, which in XML form is similar to the empty container.</li>\r
18  * <li><b>item</b> in <b>leaf-list</b></li>\r
19  * </ul>\r
20  * \r
21  * \r
22  * @param <T>\r
23  */\r
24 public interface SimpleNode<T> extends Node<T>, NodeModification {\r
25 \r
26     /**\r
27      * @return cast self to mutable, if possible \r
28      */\r
29     MutableSimpleNode<T> asMutable();\r
30 }\r