Coverage Report - org.kuali.student.core.dictionary.dto.Constraint
 
Classes in this File Line Coverage Branch Coverage Complexity
Constraint
0%
0/50
0%
0/4
1.067
 
 1  
 package org.kuali.student.core.dictionary.dto;
 2  
 
 3  
 import java.util.ArrayList;
 4  
 import java.util.List;
 5  
 
 6  
 import javax.xml.bind.annotation.XmlAccessType;
 7  
 import javax.xml.bind.annotation.XmlAccessorType;
 8  
 import javax.xml.bind.annotation.XmlElement;
 9  
 
 10  
 @XmlAccessorType(XmlAccessType.FIELD)
 11  0
 public class Constraint extends BaseConstraint {
 12  
         public static final String UNBOUNDED = "unbounded";
 13  
         public static final String SINGLE = "1";
 14  
         // Constraints
 15  
         @XmlElement
 16  
         protected boolean serverSide;
 17  
         @XmlElement
 18  
         protected String customValidatorClass;
 19  
         @XmlElement
 20  
         protected String locale; // What is locale for?
 21  
         @XmlElement
 22  
         protected String exclusiveMin;
 23  
         @XmlElement
 24  
         protected String inclusiveMax;
 25  
         @XmlElement
 26  
         protected Integer minLength;
 27  
         @XmlElement
 28  
         protected String maxLength;        
 29  
         @XmlElement
 30  
         protected ValidCharsConstraint validChars;        
 31  
         @XmlElement
 32  
         protected Integer minOccurs;        
 33  
         @XmlElement
 34  
         protected String maxOccurs;
 35  
         
 36  
         @XmlElement
 37  
     protected CaseConstraint caseConstraint;
 38  
         
 39  
         @XmlElement
 40  
     protected List<RequiredConstraint> requireConstraint;
 41  
 
 42  
         @XmlElement
 43  
         protected List<MustOccurConstraint> occursConstraint;
 44  
 
 45  
         // LookupConstraints
 46  
         protected LookupConstraint lookupDefinition;// If the user wants to match
 47  
         // against two searches, that
 48  
         // search must be defined as
 49  
         // well
 50  
         protected String lookupContextPath;// The idea here is to reuse a
 51  
 
 52  
         // lookupConstraint with fields relative
 53  
         // to the contextPath. We might not need
 54  
         // this
 55  
         public boolean isServerSide() {
 56  0
                 return serverSide;
 57  
         }
 58  
 
 59  
         public void setServerSide(boolean serverSide) {
 60  0
                 this.serverSide = serverSide;
 61  0
         }
 62  
 
 63  
         public String getLocale() {
 64  0
                 return locale;
 65  
         }
 66  
 
 67  
         public void setLocale(String locale) {
 68  0
                 this.locale = locale;
 69  0
         }
 70  
 
 71  
         public String getExclusiveMin() {
 72  0
                 return exclusiveMin;
 73  
         }
 74  
 
 75  
         public void setExclusiveMin(String exclusiveMin) {
 76  0
                 this.exclusiveMin = exclusiveMin;
 77  0
         }
 78  
 
 79  
         public String getInclusiveMax() {
 80  0
                 return inclusiveMax;
 81  
         }
 82  
 
 83  
         public void setInclusiveMax(String inclusiveMax) {
 84  0
                 this.inclusiveMax = inclusiveMax;
 85  0
         }
 86  
 
 87  
         public Integer getMinLength() {
 88  0
                 return minLength;
 89  
         }
 90  
 
 91  
         public void setMinLength(Integer minLength) {
 92  0
                 this.minLength = minLength;
 93  0
         }
 94  
 
 95  
         public String getMaxLength() {
 96  0
                 return maxLength;
 97  
         }
 98  
 
 99  
         public void setMaxLength(String maxLength) {
 100  0
                 this.maxLength = maxLength;
 101  0
         }
 102  
 
 103  
         public ValidCharsConstraint getValidChars() {
 104  0
                 return validChars;
 105  
         }
 106  
 
 107  
         public void setValidChars(ValidCharsConstraint validChars) {
 108  0
                 this.validChars = validChars;
 109  0
         }
 110  
 
 111  
         public Integer getMinOccurs() {
 112  0
                 return minOccurs;
 113  
         }
 114  
 
 115  
         public void setMinOccurs(Integer minOccurs) {
 116  0
                 this.minOccurs = minOccurs;
 117  0
         }
 118  
 
 119  
         public String getMaxOccurs() {
 120  0
                 return maxOccurs;
 121  
         }
 122  
 
 123  
         public void setMaxOccurs(String maxOccurs) {
 124  0
                 this.maxOccurs = maxOccurs;
 125  0
         }
 126  
 
 127  
         public List<RequiredConstraint> getRequireConstraint() {
 128  0
         if(null == requireConstraint) {
 129  0
             this.requireConstraint = new ArrayList<RequiredConstraint>();
 130  
         }
 131  
 
 132  0
             return requireConstraint;
 133  
         }
 134  
 
 135  
         public void setRequireConstraint(List<RequiredConstraint> requireConstraint) {
 136  0
             this.requireConstraint = requireConstraint;
 137  0
         }
 138  
 
 139  
     public CaseConstraint getCaseConstraint() {
 140  0
         return caseConstraint;
 141  
     }
 142  
 
 143  
     public void setCaseConstraint(CaseConstraint caseConstraint) {
 144  0
         this.caseConstraint = caseConstraint;
 145  0
     }
 146  
 
 147  
     public List<MustOccurConstraint> getOccursConstraint() {
 148  0
         if(null == occursConstraint) {
 149  0
             this.occursConstraint = new ArrayList<MustOccurConstraint>();
 150  
         }
 151  0
                 return occursConstraint;
 152  
         }
 153  
 
 154  
         public void setOccursConstraint(List<MustOccurConstraint> occursConstraint) {
 155  0
                 this.occursConstraint = occursConstraint;
 156  0
         }
 157  
 
 158  
         public LookupConstraint getLookupDefinition() {
 159  0
                 return lookupDefinition;
 160  
         }
 161  
 
 162  
         public void setLookupDefinition(LookupConstraint lookupDefinition) {
 163  0
                 this.lookupDefinition = lookupDefinition;
 164  0
         }
 165  
 
 166  
         public String getLookupContextPath() {
 167  0
                 return lookupContextPath;
 168  
         }
 169  
 
 170  
         public void setLookupContextPath(String lookupContextPath) {
 171  0
                 this.lookupContextPath = lookupContextPath;
 172  0
         }
 173  
 
 174  
         public String getCustomValidatorClass() {
 175  0
                 return customValidatorClass;
 176  
         }
 177  
 
 178  
         public void setCustomValidatorClass(String customValidatorClass) {
 179  0
                 this.customValidatorClass = customValidatorClass;
 180  0
         }
 181  
 }