Bug 868: Removed Binding to Composite Node codecs.
[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 import org.opendaylight.yangtools.yang.data.api.schema.NormalizedNode;
11
12 /**
13  * Simple node represents a leaf in the data tree, which does not contain any
14  * nested nodes, but the value of node. In the terms of the XML the simple node
15  * is element which contains only text data (CDATA or PCDATA). The simple node
16  * is the manifestation of the following data schema constructs in YANG:
17  * <ul>
18  * <li><b>leaf</b> - simple node could represent YANG leafs of all types except
19  * the empty type, which in XML form is similar to the empty container.</li>
20  * <li><b>item</b> in <b>leaf-list</b></li>
21  * </ul>
22  *
23  *
24  * @param <T>
25  *
26  * @deprecated Use {@link NormalizedNode} instead.
27  */
28 @Deprecated
29 public interface SimpleNode<T> extends Node<T>, NodeModification {
30
31     /**
32      * @return cast self to mutable, if possible
33      */
34     MutableSimpleNode<T> asMutable();
35 }