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.model.api;
11 * Interface describing YANG <code>leaf</code> statement. The interface contains
12 * the methods for getting the following data (substatements of
13 * <code>leaf</code> statement)
15 * <li><code>type</code></li>
16 * <li><code>default</code></li>
17 * <li><code>units</code></li>
20 * The 'leaf' statement is used to define a leaf node in the schema tree.
23 public interface LeafSchemaNode extends TypedSchemaNode {
25 * Returns the default value of YANG <code>leaf</code>.
27 * @return string with the value of the argument of YANG
28 * <code>default</code> substatement of the <code>leaf</code>
34 * Returns the units in which are the values of the <code>leaf</code>
37 * @return string with the value of the argument of YANG <code>units</code>
38 * substatement of the <code>leaf</code> statement