1 /* 2 * Copyright 2011 The Kuali Foundation 3 * 4 * Licensed under the Educational Community License, Version 1.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.opensource.org/licenses/ecl1.php 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 package org.kuali.student.datadictionary.infc; 17 18 import org.kuali.rice.kns.datadictionary.validation.constraint.Constraint; 19 20 /** 21 * Base constriant 22 * 23 * @author nwright 24 */ 25 public interface BaseConstraintInfc extends Constraint { 26 /** 27 * Name: Label Key 28 * 29 * LabelKey should be a single word key. This key is used to find a message to use for this 30 * constraint from available messages. The key is also used for defining/retrieving validation method 31 * names when applicable - as such this key MUST exist for valid character constraints. 32 */ 33 public String getLabelKey(); 34 35 /** 36 * Name: Apply Client Side 37 * 38 * If this is true, the constraint should be applied on the client side when the user interacts with 39 * a field - if this constraint can be interpreted for client side use. Default is true. 40 */ 41 public Boolean isApplyClientSide(); 42 43 44 }