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