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