1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
|
12 | |
|
13 | |
|
14 | |
|
15 | |
|
16 | |
package org.kuali.student.datadictionary.dto; |
17 | |
|
18 | |
import java.io.Serializable; |
19 | |
import javax.xml.bind.annotation.XmlAccessType; |
20 | |
import javax.xml.bind.annotation.XmlAccessorType; |
21 | |
import javax.xml.bind.annotation.XmlElement; |
22 | |
import org.kuali.student.datadictionary.infc.ValidCharactersConstraintInfc; |
23 | |
|
24 | |
|
25 | |
@XmlAccessorType(XmlAccessType.FIELD) |
26 | 465 | public class ValidCharactersConstraintInfo implements ValidCharactersConstraintInfc, Serializable { |
27 | |
|
28 | |
private static final long serialVersionUID = 1L; |
29 | |
@XmlElement |
30 | |
private String value; |
31 | |
@XmlElement |
32 | |
private String jsValue; |
33 | |
@XmlElement |
34 | |
private Boolean applyClientSide; |
35 | |
@XmlElement |
36 | |
private String labelKey; |
37 | |
|
38 | 0 | public ValidCharactersConstraintInfo() { |
39 | 0 | this.value = null; |
40 | 0 | this.jsValue = null; |
41 | 0 | this.applyClientSide = null; |
42 | 0 | this.labelKey = null; |
43 | 0 | } |
44 | |
|
45 | |
@Override |
46 | |
public String getJsValue() { |
47 | 310 | return this.jsValue; |
48 | |
} |
49 | |
|
50 | |
@Override |
51 | |
public String getValue() { |
52 | 310 | return this.value; |
53 | |
} |
54 | |
|
55 | |
@Override |
56 | |
public Boolean isApplyClientSide() { |
57 | 310 | return this.applyClientSide; |
58 | |
} |
59 | |
|
60 | |
@Override |
61 | |
public String getLabelKey() { |
62 | 310 | return this.labelKey; |
63 | |
} |
64 | |
|
65 | |
private ValidCharactersConstraintInfo(ValidCharactersConstraintInfc infc) { |
66 | 465 | super(); |
67 | 465 | this.value = infc.getValue(); |
68 | 465 | this.jsValue = infc.getJsValue(); |
69 | 465 | this.applyClientSide = infc.isApplyClientSide(); |
70 | 465 | this.labelKey = infc.getLabelKey(); |
71 | 465 | } |
72 | |
|
73 | |
public static class Builder implements ValidCharactersConstraintInfc { |
74 | |
|
75 | |
private String value; |
76 | |
private String jsValue; |
77 | |
private Boolean applyClientSide; |
78 | |
private String labelKey; |
79 | |
|
80 | 155 | public Builder() { |
81 | 155 | } |
82 | |
|
83 | |
public Builder(ValidCharactersConstraintInfc infc) { |
84 | 310 | super(); |
85 | 310 | this.value = infc.getValue(); |
86 | 310 | this.jsValue = infc.getJsValue(); |
87 | 310 | this.applyClientSide = infc.isApplyClientSide(); |
88 | 310 | this.labelKey = infc.getLabelKey(); |
89 | 310 | } |
90 | |
|
91 | |
public ValidCharactersConstraintInfo build() { |
92 | 465 | return new ValidCharactersConstraintInfo(this); |
93 | |
} |
94 | |
|
95 | |
@Override |
96 | |
public String getJsValue() { |
97 | 465 | return this.jsValue; |
98 | |
} |
99 | |
|
100 | |
@Override |
101 | |
public String getValue() { |
102 | 465 | return this.value; |
103 | |
} |
104 | |
|
105 | |
public Builder setJsValue(String jsValue) { |
106 | 155 | this.jsValue = jsValue; |
107 | 155 | return this; |
108 | |
} |
109 | |
|
110 | |
public Builder setValue(String value) { |
111 | 155 | this.value = value; |
112 | 155 | return this; |
113 | |
} |
114 | |
|
115 | |
@Override |
116 | |
public Boolean isApplyClientSide() { |
117 | 465 | return this.applyClientSide; |
118 | |
} |
119 | |
|
120 | |
@Override |
121 | |
public String getLabelKey() { |
122 | 465 | return this.labelKey; |
123 | |
} |
124 | |
|
125 | |
public Builder setApplyClientSide(Boolean applyClientSide) { |
126 | 155 | this.applyClientSide = applyClientSide; |
127 | 155 | return this; |
128 | |
} |
129 | |
|
130 | |
public Builder setLabelKey(String labelKey) { |
131 | 155 | this.labelKey = labelKey; |
132 | 155 | return this; |
133 | |
} |
134 | |
} |
135 | |
} |