78ca2ac347eb2b441efaaf84ff81de944db9653d
[controller.git] / opendaylight / sal / yang-prototype / yang / yang-model-api / src / main / java / org / opendaylight / controller / model / api / type / DecimalTypeDefinition.java
1 /*\r
2  * Copyright (c) 2013 Cisco Systems, Inc. and others.  All rights reserved.\r
3  *\r
4  * This program and the accompanying materials are made available under the\r
5  * terms of the Eclipse Public License v1.0 which accompanies this distribution,\r
6  * and is available at http://www.eclipse.org/legal/epl-v10.html\r
7  */\r
8 package org.opendaylight.controller.model.api.type;\r
9 \r
10 import java.util.List;\r
11 \r
12 import org.opendaylight.controller.yang.model.api.TypeDefinition;\r
13 \r
14 public interface DecimalTypeDefinition extends\r
15         TypeDefinition<DecimalTypeDefinition> {\r
16 \r
17     List<RangeConstraint> getRangeStatements();\r
18 \r
19     /**\r
20      * Returns integer between 1 and 18 inclusively. <br>\r
21      * <br>\r
22      * \r
23      * The "fraction-digits" statement controls the size of the minimum\r
24      * difference between values of a decimal64 type, by restricting the value\r
25      * space to numbers that are expressible as "i x 10^-n" where n is the\r
26      * fraction-digits argument.\r
27      * \r
28      * @return\r
29      */\r
30     Integer getFractionDigits();\r
31 }\r