X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=opendaylight%2Fsal%2Fyang-prototype%2Fyang%2Fyang-model-api%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fyang%2Fmodel%2Fapi%2Ftype%2FDecimalTypeDefinition.java;fp=opendaylight%2Fsal%2Fyang-prototype%2Fyang%2Fyang-model-api%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fyang%2Fmodel%2Fapi%2Ftype%2FDecimalTypeDefinition.java;h=74a420a3f885f9b88ea7df04f2803e353893948d;hb=4ce0f6630bc576b97c8c9a08848aafb6e90a75b0;hp=0000000000000000000000000000000000000000;hpb=c8b79431119d6952b60a092e89727aa648a89bdd;p=controller.git diff --git a/opendaylight/sal/yang-prototype/yang/yang-model-api/src/main/java/org/opendaylight/controller/yang/model/api/type/DecimalTypeDefinition.java b/opendaylight/sal/yang-prototype/yang/yang-model-api/src/main/java/org/opendaylight/controller/yang/model/api/type/DecimalTypeDefinition.java new file mode 100644 index 0000000000..74a420a3f8 --- /dev/null +++ b/opendaylight/sal/yang-prototype/yang/yang-model-api/src/main/java/org/opendaylight/controller/yang/model/api/type/DecimalTypeDefinition.java @@ -0,0 +1,31 @@ +/* + * 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.controller.yang.model.api.type; + +import java.util.List; + +import org.opendaylight.controller.yang.model.api.TypeDefinition; + +public interface DecimalTypeDefinition extends + TypeDefinition { + + List getRangeStatements(); + + /** + * Returns integer between 1 and 18 inclusively.
+ *
+ * + * The "fraction-digits" statement controls the size of the minimum + * difference between values of a decimal64 type, by restricting the value + * space to numbers that are expressible as "i x 10^-n" where n is the + * fraction-digits argument. + * + * @return + */ + Integer getFractionDigits(); +}