2 * Copyright (c) 2013 Cisco Systems, Inc. and others. All rights reserved.
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
8 package org.opendaylight.yangtools.yang.data.api;
10 import org.opendaylight.yangtools.yang.data.api.schema.NormalizedNode;
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:
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>
26 * @deprecated Use {@link NormalizedNode} instead.
29 public interface SimpleNode<T> extends Node<T>, NodeModification {
32 * @return cast self to mutable, if possible
34 MutableSimpleNode<T> asMutable();