/*
* 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;
/**
*
* YANG statement typedef
contains also substatements
*
default
- default value which is compatible with
* type
,type
- base type from which is typedef
derived,
* units
- textual information about units associated with this
* type.type
substatement) which
* is included in the instance of this type
*/
public interface TypeDefinitiontype
substatement of the YANG typedef
* statement.
*
* @return value of <T>
type which represents the base
* type of instance of the TypeDefinition
type
*/
T getBaseType();
/**
* Returns the unit which represents the value of the argument of the
* units
substatement of the YANG typedef
* statement.
*
* @return string with units in which is type measured
*/
String getUnits();
/**
* Returns the default value which represents the value of the argument of
* the default
substatement of the YANG typedef
* statement.
*
* @return instance of Object
type which contains default value
* for typedef
*/
Object getDefaultValue();
}