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