/* * 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.model.api.type; import org.opendaylight.controller.yang.model.api.ConstraintMetaDefinition; /** * The Lenght Constraint value consists of an explicit value, or a lower bound * returned by {@link #getMin()} and an upper bound returned by * {@link #getMax()}.
*
* Length-restricting values MUST NOT be negative. A length value is a * non-negative integer, or one of the special values min or * max. The defined min and max mean the * minimum and maximum length accepted for the type being restricted, * respectively.
* An implementation is not required to support a length value larger than * {@link Long#MAX_VALUE}
*
* The interface extends definitions from {@link ConstraintMetaDefinition}
*
* This interface was modeled according to definition in [RFC-6020] The * length Statement. * * @see ConstraintMetaDefinition */ public interface LengthConstraint extends ConstraintMetaDefinition { /** * Returns the length-restricting lower bound value.
* The value MUST NOT be negative. * * @return the length-restricting lower bound value. */ Long getMin(); /** * Returns the length-restricting upper bound value.
* The value MUST NOT be negative. * * @return length-restricting upper bound value. */ Long getMax(); }