1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.kuali.student.r1.common.assembly.data;
17
18 import java.io.Serializable;
19 import java.util.List;
20
21 import javax.xml.bind.annotation.XmlAccessType;
22 import javax.xml.bind.annotation.XmlAccessorType;
23 import javax.xml.bind.annotation.XmlTransient;
24
25
26
27
28
29 @Deprecated
30 @XmlAccessorType(XmlAccessType.FIELD)
31 public class ConstraintMetadata implements Serializable {
32
33 private static final long serialVersionUID = 1L;
34
35 @XmlTransient
36 private List<ConstraintMetadata> childConstraints;
37
38 private String comments;
39
40 private String desc;
41
42 private String id;
43
44 private Integer maxLength;
45
46 private Integer maxOccurs;
47
48 private String maxValue;
49
50 private Integer minLength;
51
52 protected Integer minOccurs;
53
54 private String minValue;
55
56 private boolean serverSide;
57
58 protected String specialValidator;
59
60 private String validChars;
61
62 private String validCharsMessageId;
63
64 private boolean requiredForNextState = false;
65
66 private String nextState;
67
68 public List<ConstraintMetadata> getChildConstraints() {
69 return childConstraints;
70 }
71
72 public void setChildConstraints(List<ConstraintMetadata> childConstraints) {
73 this.childConstraints = childConstraints;
74 }
75
76 public String getComments() {
77 return comments;
78 }
79
80 public void setComments(String comments) {
81 this.comments = comments;
82 }
83
84 public String getDesc() {
85 return desc;
86 }
87
88 public void setDesc(String desc) {
89 this.desc = desc;
90 }
91
92 public String getId() {
93 return id;
94 }
95
96 public void setId(String id) {
97 this.id = id;
98 }
99
100 public Integer getMaxLength() {
101 return maxLength;
102 }
103
104 public void setMaxLength(Integer maxLength) {
105 this.maxLength = maxLength;
106 }
107
108 public Integer getMaxOccurs() {
109 return maxOccurs;
110 }
111
112 public void setMaxOccurs(Integer maxOccurs) {
113 this.maxOccurs = maxOccurs;
114 }
115
116 public String getMaxValue() {
117 return maxValue;
118 }
119
120 public void setMaxValue(String maxValue) {
121 this.maxValue = maxValue;
122 }
123
124 public Integer getMinLength() {
125 return minLength;
126 }
127
128 public void setMinLength(Integer minLength) {
129 this.minLength = minLength;
130 }
131
132 public Integer getMinOccurs() {
133 return minOccurs;
134 }
135
136 public void setMinOccurs(Integer minOccurs) {
137 this.minOccurs = minOccurs;
138 }
139
140 public String getMinValue() {
141 return minValue;
142 }
143
144 public void setMinValue(String minValue) {
145 this.minValue = minValue;
146 }
147
148 public boolean isServerSide() {
149 return serverSide;
150 }
151
152 public void setServerSide(boolean serverSide) {
153 this.serverSide = serverSide;
154 }
155
156 public String getSpecialValidator() {
157 return specialValidator;
158 }
159
160 public void setSpecialValidator(String specialValidator) {
161 this.specialValidator = specialValidator;
162 }
163
164 public String getValidChars() {
165 return validChars;
166 }
167
168 public void setValidChars(String validChars) {
169 this.validChars = validChars;
170 }
171
172 public String getValidCharsMessageId() {
173 return validCharsMessageId;
174 }
175
176 public void setValidCharsMessageId(String validCharsMessageId) {
177 this.validCharsMessageId = validCharsMessageId;
178 }
179
180 public boolean isRequiredForNextState() {
181 return requiredForNextState;
182 }
183
184 public void setRequiredForNextState(boolean requiredForNextState) {
185 this.requiredForNextState = requiredForNextState;
186 }
187
188 public String getNextState() {
189 return nextState;
190 }
191
192 public void setNextState(String nextState) {
193 this.nextState = nextState;
194 }
195
196 @Override
197 public String toString() {
198 StringBuilder sb = new StringBuilder();
199 _toString(sb);
200 return sb.toString();
201 }
202
203 protected void _toString(StringBuilder sb) {
204 sb.append("comments: ");
205 sb.append(comments);
206 sb.append(", desc: ");
207 sb.append(desc);
208 sb.append(", id: ");
209 sb.append(id);
210 sb.append(", maxLength: ");
211 sb.append(null != maxLength ? maxLength.toString() : "null");
212 sb.append(", maxOccurs: ");
213 sb.append(null != maxOccurs ? maxOccurs.toString() : "null");
214 sb.append(", maxValue: ");
215 sb.append(maxValue);
216 sb.append(", minLength: ");
217 sb.append(null != minLength ? minLength.toString() : "null");
218 sb.append(", minOccurs: ");
219 sb.append(null != minOccurs ? minOccurs.toString() : "null");
220 sb.append(", minValue: ");
221 sb.append(minValue);
222 sb.append(", serverSide: ");
223 sb.append(Boolean.toString(serverSide));
224 sb.append(", specialValidator: ");
225 sb.append(specialValidator);
226 sb.append(", validCharsMessageId: ");
227 sb.append(validCharsMessageId);
228 sb.append(", validChars: ");
229 sb.append(validChars);
230 sb.append(", requiredForNextState: ");
231 sb.append(Boolean.toString(requiredForNextState));
232 sb.append(", nextState: ");
233 sb.append(nextState);
234 sb.append(", ChildConstraints: {");
235 if (null != childConstraints) {
236 for (ConstraintMetadata constraint : childConstraints) {
237 constraint._toString(sb);
238 }
239 }
240 sb.append("}");
241 }
242 }