/*
* Copyright (c) 2013 Cisco Systems, Inc. and others. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v1.0 which accompanies this distribution,
* and is available at http://www.eclipse.org/legal/epl-v10.html
*/
package org.opendaylight.yangtools.yang.model.api;
/**
* Interface describing YANG leaf
statement. The interface contains
* the methods for getting the following data (substatements of
* leaf
statement)
*
type
default
units
* The 'leaf' statement is used to define a leaf node in the schema tree. *
*/ public interface LeafSchemaNode extends DataSchemaNode { /** * Returns the YANGtype
of the instance of the type
* LeafSchemaNode
.
*
* @return type definition which represents the value of the YANG
* type
substatement for leaf
statement
*/
TypeDefinition> getType();
/**
* Returns the default value of YANG leaf
.
*
* @return string with the value of the argument of YANG
* default
substatement of the leaf
* statement
*/
String getDefault();
/**
* Returns the units in which are the values of the leaf
* presented.
*
* @return string with the value of the argument of YANG units
* substatement of the leaf
statement
*/
String getUnits();
}