1
2
3
4
5
6
7
8
9
10
11
12
13
14
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
26
27
28
29
30 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 public enum Widget {
51 SUGGEST_BOX, DROPDOWN_LIST, RADIO_BUTTONS, CHECK_BOXES, TEXT_BOX, CALENDAR, PICKER
52 }
53
54 public enum WriteAccess {
55 ON_CREATE,
56 ALWAYS, NEVER, WHEN_NULL, REQUIRED
57 }
58
59 public enum Usage {
60 DEFAULT, ADVANCED, CUSTOM, ADVANCED_CUSTOM
61 }
62 private Widget widget;
63
64 public String getKey() {
65 return key;
66 }
67
68 public void setKey(String key) {
69 this.key = key;
70 }
71
72 public CommonLookup getChildLookup() {
73 return childLookup;
74 }
75
76 public void setChildLookup(CommonLookup childLookup) {
77 this.childLookup = childLookup;
78 }
79
80 public WriteAccess getWriteAccess() {
81 return writeAccess;
82 }
83
84 public void setWriteAccess(WriteAccess writeAccess) {
85 this.writeAccess = writeAccess;
86 }
87
88 public DataType getDataType() {
89 return dataType;
90 }
91
92 public void setDataType(DataType dataType) {
93 this.dataType = dataType;
94 }
95
96 public boolean isOptional() {
97 return optional;
98 }
99
100 public void setOptional(boolean optional) {
101 this.optional = optional;
102 }
103
104 public ArrayList<String> getDefaultValueList() {
105 return defaultValueList;
106 }
107
108 public void setDefaultValueList(ArrayList<String> defaultValueList) {
109 this.defaultValueList = defaultValueList;
110 }
111
112 public String getDefaultValueString() {
113 return defaultValueString;
114 }
115
116 public void setDefaultValueString(String defaultValueString) {
117 this.defaultValueString = defaultValueString;
118 }
119
120 public String getName() {
121 return name;
122 }
123
124 public void setName(String name) {
125 this.name = name;
126 }
127
128 public String getDesc() {
129 return desc;
130 }
131
132 public void setDesc(String desc) {
133 this.desc = desc;
134 }
135
136 public boolean isCaseSensitive() {
137 return caseSensitive;
138 }
139
140 public void setCaseSensitive(boolean caseSensitive) {
141 this.caseSensitive = caseSensitive;
142 }
143
144 public Usage getUsage() {
145 return usage;
146 }
147
148 public void setUsage(Usage usage) {
149 this.usage = usage;
150 }
151
152 public String getFieldPath() {
153 return fieldPath;
154 }
155
156 public void setFieldPath(String fieldPath) {
157 this.fieldPath = fieldPath;
158 }
159
160 public Widget getWidget() {
161 return widget;
162 }
163
164 public void setWidget(Widget widget) {
165 this.widget = widget;
166 }
167 }