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