Coverage Report - org.kuali.rice.krad.datadictionary.validation.constraint.CaseConstraint
 
Classes in this File Line Coverage Branch Coverage Complexity
CaseConstraint
0%
0/13
N/A
1
 
 1  
 package org.kuali.rice.krad.datadictionary.validation.constraint;
 2  
 
 3  
 import java.util.List;
 4  
 
 5  
 import javax.xml.bind.annotation.XmlAccessType;
 6  
 import javax.xml.bind.annotation.XmlAccessorType;
 7  
 import javax.xml.bind.annotation.XmlElement;
 8  
 
 9  
 /**
 10  
  * A case constraint is a constraint that is imposed only when a certain condition is met, for example, if the country attribute value is "USA",
 11  
  * then a prerequisite constraint may be imposed that the 'State' attribute is non-null. 
 12  
  * 
 13  
  * This class is a direct copy of one that was in Kuali Student. 
 14  
  * 
 15  
  * @author Kuali Rice Team (rice.collab@kuali.org)
 16  
  * @since 1.1
 17  
  */
 18  
 @XmlAccessorType(XmlAccessType.FIELD)
 19  0
 public class CaseConstraint extends BaseConstraint {
 20  
         @XmlElement
 21  
     protected List<WhenConstraint> whenConstraint;
 22  
         @XmlElement
 23  
         protected String fieldPath;
 24  
         @XmlElement
 25  
         protected String operator;
 26  
         @XmlElement
 27  
         protected boolean caseSensitive;
 28  
 
 29  
         public List<WhenConstraint> getWhenConstraint() {
 30  0
                 return whenConstraint;
 31  
         }
 32  
 
 33  
         public void setWhenConstraint(List<WhenConstraint> whenConstraint) {
 34  0
                 this.whenConstraint = whenConstraint;
 35  0
         }
 36  
 
 37  
         public String getFieldPath() {
 38  0
                 return fieldPath;
 39  
         }
 40  
 
 41  
         public void setFieldPath(String fieldPath) {
 42  0
                 this.fieldPath = fieldPath;
 43  0
         }
 44  
 
 45  
         public String getOperator() {
 46  0
                 return operator;
 47  
         }
 48  
 
 49  
         public void setOperator(String operator) {
 50  0
                 this.operator = operator;
 51  0
         }
 52  
 
 53  
     public boolean isCaseSensitive() {
 54  0
         return caseSensitive;
 55  
     }
 56  
 
 57  
     public void setCaseSensitive(boolean caseSensitive) {
 58  0
         this.caseSensitive = caseSensitive;
 59  0
     }
 60  
 }