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.controller.yang.model.api.type;
10 import org.opendaylight.controller.yang.model.api.ConstraintMetaDefinition;
13 * The Range Constraint interface is used to restrict integer and decimal
14 * built-in types, or types derived from those.
16 * A range consists of an explicit value consists of an explicit value, or a lower bound
17 * returned by {@link #getMin()} and an upper bound returned by
18 * {@link #getMax()}. <br>
20 * Each explicit value and range boundary value given in
21 * the range expression MUST match the type being restricted, or be one of the
22 * special values "min" or "max". "min" and "max" mean the minimum and maximum
23 * value accepted for the type being restricted, respectively
26 * This interface was modeled according to definition in <a
27 * href="https://tools.ietf.org/html/rfc6020#section-9.2.4">[RFC-6020] The
28 * range Statement</a>.
30 public interface RangeConstraint extends ConstraintMetaDefinition {
33 * Returns the length-restricting lower bound value.
35 * @return the length-restricting lower bound value.
40 * Returns the length-restricting upper bound value.
42 * @return the length-restricting upper bound value.