Coverage Report - org.kuali.rice.krad.datadictionary.validation.constraint.CommonLookupParam
 
Classes in this File Line Coverage Branch Coverage Complexity
CommonLookupParam
0%
0/41
N/A
1
CommonLookupParam$Usage
0%
0/2
N/A
1
CommonLookupParam$Widget
0%
0/2
N/A
1
CommonLookupParam$WriteAccess
0%
0/3
N/A
1
 
 1  
 /**
 2  
  * Copyright 2005-2011 The Kuali Foundation
 3  
  *
 4  
  * Licensed under the Educational Community License, Version 2.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/ecl2.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.rice.krad.datadictionary.validation.constraint;
 17  
 
 18  
 import org.kuali.rice.core.api.uif.DataType;
 19  
 
 20  
 import java.io.Serializable;
 21  
 import java.util.ArrayList;
 22  
 
 23  
 
 24  
 /**
 25  
  * This class is a direct copy of one that was in Kuali Student. Look up constraints are currently not implemented. 
 26  
  * 
 27  
  * @author Kuali Rice Team (rice.collab@kuali.org)
 28  
  * @since 1.1
 29  
  */
 30  0
 public class CommonLookupParam  implements Serializable {
 31  
 
 32  
 
 33  
         private static final long serialVersionUID = 1L;
 34  
     private String key;
 35  
     private CommonLookup childLookup;    
 36  
     private WriteAccess writeAccess; 
 37  
     private DataType dataType;    
 38  
     private boolean optional;
 39  
     
 40  
     private ArrayList<String> defaultValueList;
 41  
     private String defaultValueString;
 42  
     
 43  
     private String name;      
 44  
     private String desc;    
 45  
     private boolean caseSensitive;
 46  
     private Usage usage;
 47  
         protected String fieldPath;
 48  
 
 49  
 
 50  0
     public enum Widget {
 51  0
         SUGGEST_BOX, DROPDOWN_LIST, RADIO_BUTTONS, CHECK_BOXES, TEXT_BOX, CALENDAR, PICKER
 52  
     }
 53  
 
 54  0
     public enum WriteAccess {
 55  0
         ON_CREATE, /* must also be required */
 56  0
         ALWAYS, NEVER, WHEN_NULL, REQUIRED
 57  
     }
 58  
     
 59  0
     public enum Usage {
 60  0
         DEFAULT, ADVANCED, CUSTOM, ADVANCED_CUSTOM
 61  
     }
 62  
     private Widget widget;
 63  
 
 64  
         public String getKey() {
 65  0
                 return key;
 66  
         }
 67  
 
 68  
         public void setKey(String key) {
 69  0
                 this.key = key;
 70  0
         }
 71  
 
 72  
         public CommonLookup getChildLookup() {
 73  0
                 return childLookup;
 74  
         }
 75  
 
 76  
         public void setChildLookup(CommonLookup childLookup) {
 77  0
                 this.childLookup = childLookup;
 78  0
         }
 79  
 
 80  
         public WriteAccess getWriteAccess() {
 81  0
                 return writeAccess;
 82  
         }
 83  
 
 84  
         public void setWriteAccess(WriteAccess writeAccess) {
 85  0
                 this.writeAccess = writeAccess;
 86  0
         }
 87  
 
 88  
         public DataType getDataType() {
 89  0
                 return dataType;
 90  
         }
 91  
 
 92  
         public void setDataType(DataType dataType) {
 93  0
                 this.dataType = dataType;
 94  0
         }
 95  
 
 96  
         public boolean isOptional() {
 97  0
                 return optional;
 98  
         }
 99  
 
 100  
         public void setOptional(boolean optional) {
 101  0
                 this.optional = optional;
 102  0
         }
 103  
 
 104  
         public ArrayList<String> getDefaultValueList() {
 105  0
                 return defaultValueList;
 106  
         }
 107  
 
 108  
         public void setDefaultValueList(ArrayList<String> defaultValueList) {
 109  0
                 this.defaultValueList = defaultValueList;
 110  0
         }
 111  
 
 112  
         public String getDefaultValueString() {
 113  0
                 return defaultValueString;
 114  
         }
 115  
 
 116  
         public void setDefaultValueString(String defaultValueString) {
 117  0
                 this.defaultValueString = defaultValueString;
 118  0
         }
 119  
 
 120  
         public String getName() {
 121  0
                 return name;
 122  
         }
 123  
 
 124  
         public void setName(String name) {
 125  0
                 this.name = name;
 126  0
         }
 127  
 
 128  
         public String getDesc() {
 129  0
                 return desc;
 130  
         }
 131  
 
 132  
         public void setDesc(String desc) {
 133  0
                 this.desc = desc;
 134  0
         }
 135  
 
 136  
         public boolean isCaseSensitive() {
 137  0
                 return caseSensitive;
 138  
         }
 139  
 
 140  
         public void setCaseSensitive(boolean caseSensitive) {
 141  0
                 this.caseSensitive = caseSensitive;
 142  0
         }
 143  
 
 144  
         public Usage getUsage() {
 145  0
                 return usage;
 146  
         }
 147  
 
 148  
         public void setUsage(Usage usage) {
 149  0
                 this.usage = usage;
 150  0
         }
 151  
 
 152  
         public String getFieldPath() {
 153  0
                 return fieldPath;
 154  
         }
 155  
 
 156  
         public void setFieldPath(String fieldPath) {
 157  0
                 this.fieldPath = fieldPath;
 158  0
         }
 159  
 
 160  
         public Widget getWidget() {
 161  0
                 return widget;
 162  
         }
 163  
 
 164  
         public void setWidget(Widget widget) {
 165  0
                 this.widget = widget;
 166  0
         }
 167  
 }