001 /**
002 * Copyright 2005-2014 The Kuali Foundation
003 *
004 * Licensed under the Educational Community License, Version 2.0 (the "License");
005 * you may not use this file except in compliance with the License.
006 * You may obtain a copy of the License at
007 *
008 * http://www.opensource.org/licenses/ecl2.php
009 *
010 * Unless required by applicable law or agreed to in writing, software
011 * distributed under the License is distributed on an "AS IS" BASIS,
012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
013 * See the License for the specific language governing permissions and
014 * limitations under the License.
015 */
016 package org.kuali.rice.krad.datadictionary.validation.constraint;
017
018 /**
019 * A range constraint that restricts a value to a specified range
020 *
021 * <p>
022 * This range can be numeric or it can be a date.
023 * </p>
024 *
025 * @author Kuali Rice Team (rice.collab@kuali.org)
026 * @since 2.0
027 */
028 public interface RangeConstraint extends DataTypeConstraint {
029
030 /**
031 * Determines the maximum value of the field
032 *
033 * <p>
034 * The inclusiveMax element determines the maximum allowable value for data entry editing purposes.
035 * Value can be an integer or decimal value such as -.001 or 99.
036 * </p>
037 *
038 * @return String specifying the maximum value
039 */
040 String getInclusiveMax();
041
042 /**
043 * Determines the minimum value of the field
044 *
045 * <p>
046 * The exclusiveMin element determines the minimum allowable value for data entry editing purposes.
047 * Value can be an integer or decimal value such as -.001 or 99.
048 * </p>
049 *
050 * @return String specifying the minimum value
051 */
052 String getExclusiveMin();
053
054 }