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 DataSchemaNode {
26 * Returns the YANG <code>type</code> of the instance of the type
27 * <code>LeafSchemaNode</code>.
29 * @return type definition which represents the value of the YANG
30 * <code>type</code> substatement for <code>leaf</code> statement
32 TypeDefinition<?> getType();
35 * Returns the default value of YANG <code>leaf</code>.
37 * @return string with the value of the argument of YANG
38 * <code>default</code> substatement of the <code>leaf</code>
44 * Returns the units in which are the values of the <code>leaf</code>
47 * @return string with the value of the argument of YANG <code>units</code>
48 * substatement of the <code>leaf</code> statement