1 | |
package org.kuali.rice.krad.datadictionary.validation.constraint; |
2 | |
|
3 | |
import org.kuali.rice.krad.datadictionary.validation.DataType; |
4 | |
|
5 | |
import java.io.Serializable; |
6 | |
import java.util.ArrayList; |
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
|
12 | |
|
13 | |
|
14 | |
|
15 | 0 | public class CommonLookupParam implements Serializable { |
16 | |
|
17 | |
|
18 | |
private static final long serialVersionUID = 1L; |
19 | |
private String key; |
20 | |
private CommonLookup childLookup; |
21 | |
private WriteAccess writeAccess; |
22 | |
private DataType dataType; |
23 | |
private boolean optional; |
24 | |
|
25 | |
private ArrayList<String> defaultValueList; |
26 | |
private String defaultValueString; |
27 | |
|
28 | |
private String name; |
29 | |
private String desc; |
30 | |
private boolean caseSensitive; |
31 | |
private Usage usage; |
32 | |
protected String fieldPath; |
33 | |
|
34 | |
|
35 | 0 | public enum Widget { |
36 | 0 | SUGGEST_BOX, DROPDOWN_LIST, RADIO_BUTTONS, CHECK_BOXES, TEXT_BOX, CALENDAR, PICKER |
37 | |
} |
38 | |
|
39 | 0 | public enum WriteAccess { |
40 | 0 | ON_CREATE, |
41 | 0 | ALWAYS, NEVER, WHEN_NULL, REQUIRED |
42 | |
} |
43 | |
|
44 | 0 | public enum Usage { |
45 | 0 | DEFAULT, ADVANCED, CUSTOM, ADVANCED_CUSTOM |
46 | |
} |
47 | |
private Widget widget; |
48 | |
|
49 | |
public String getKey() { |
50 | 0 | return key; |
51 | |
} |
52 | |
|
53 | |
public void setKey(String key) { |
54 | 0 | this.key = key; |
55 | 0 | } |
56 | |
|
57 | |
public CommonLookup getChildLookup() { |
58 | 0 | return childLookup; |
59 | |
} |
60 | |
|
61 | |
public void setChildLookup(CommonLookup childLookup) { |
62 | 0 | this.childLookup = childLookup; |
63 | 0 | } |
64 | |
|
65 | |
public WriteAccess getWriteAccess() { |
66 | 0 | return writeAccess; |
67 | |
} |
68 | |
|
69 | |
public void setWriteAccess(WriteAccess writeAccess) { |
70 | 0 | this.writeAccess = writeAccess; |
71 | 0 | } |
72 | |
|
73 | |
public DataType getDataType() { |
74 | 0 | return dataType; |
75 | |
} |
76 | |
|
77 | |
public void setDataType(DataType dataType) { |
78 | 0 | this.dataType = dataType; |
79 | 0 | } |
80 | |
|
81 | |
public boolean isOptional() { |
82 | 0 | return optional; |
83 | |
} |
84 | |
|
85 | |
public void setOptional(boolean optional) { |
86 | 0 | this.optional = optional; |
87 | 0 | } |
88 | |
|
89 | |
public ArrayList<String> getDefaultValueList() { |
90 | 0 | return defaultValueList; |
91 | |
} |
92 | |
|
93 | |
public void setDefaultValueList(ArrayList<String> defaultValueList) { |
94 | 0 | this.defaultValueList = defaultValueList; |
95 | 0 | } |
96 | |
|
97 | |
public String getDefaultValueString() { |
98 | 0 | return defaultValueString; |
99 | |
} |
100 | |
|
101 | |
public void setDefaultValueString(String defaultValueString) { |
102 | 0 | this.defaultValueString = defaultValueString; |
103 | 0 | } |
104 | |
|
105 | |
public String getName() { |
106 | 0 | return name; |
107 | |
} |
108 | |
|
109 | |
public void setName(String name) { |
110 | 0 | this.name = name; |
111 | 0 | } |
112 | |
|
113 | |
public String getDesc() { |
114 | 0 | return desc; |
115 | |
} |
116 | |
|
117 | |
public void setDesc(String desc) { |
118 | 0 | this.desc = desc; |
119 | 0 | } |
120 | |
|
121 | |
public boolean isCaseSensitive() { |
122 | 0 | return caseSensitive; |
123 | |
} |
124 | |
|
125 | |
public void setCaseSensitive(boolean caseSensitive) { |
126 | 0 | this.caseSensitive = caseSensitive; |
127 | 0 | } |
128 | |
|
129 | |
public Usage getUsage() { |
130 | 0 | return usage; |
131 | |
} |
132 | |
|
133 | |
public void setUsage(Usage usage) { |
134 | 0 | this.usage = usage; |
135 | 0 | } |
136 | |
|
137 | |
public String getFieldPath() { |
138 | 0 | return fieldPath; |
139 | |
} |
140 | |
|
141 | |
public void setFieldPath(String fieldPath) { |
142 | 0 | this.fieldPath = fieldPath; |
143 | 0 | } |
144 | |
|
145 | |
public Widget getWidget() { |
146 | 0 | return widget; |
147 | |
} |
148 | |
|
149 | |
public void setWidget(Widget widget) { |
150 | 0 | this.widget = widget; |
151 | 0 | } |
152 | |
} |