Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
KimEntityEthnicityInfo |
|
| 1.0625;1.062 |
1 | /* | |
2 | * Copyright 2007-2009 The Kuali Foundation | |
3 | * | |
4 | * Licensed under the Educational Community License, Version 2.0 (the "License"); | |
5 | * you may not use this file except in compliance with the License. | |
6 | * You may obtain a copy of the License at | |
7 | * | |
8 | * http://www.opensource.org/licenses/ecl2.php | |
9 | * | |
10 | * Unless required by applicable law or agreed to in writing, software | |
11 | * distributed under the License is distributed on an "AS IS" BASIS, | |
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
13 | * See the License for the specific language governing permissions and | |
14 | * limitations under the License. | |
15 | */ | |
16 | package org.kuali.rice.kim.bo.entity.dto; | |
17 | ||
18 | import org.kuali.rice.kim.bo.entity.KimEntityEthnicity; | |
19 | ||
20 | /** | |
21 | * @author Kuali Rice Team (kuali-rice@googlegroups.com) | |
22 | */ | |
23 | public class KimEntityEthnicityInfo extends KimInfoBase implements KimEntityEthnicity { | |
24 | ||
25 | private static final long serialVersionUID = -5660229079458643653L; | |
26 | ||
27 | protected String id; | |
28 | protected String entityId; | |
29 | protected String ethnicityCode; | |
30 | protected String ethnicityCodeUnmasked; | |
31 | protected String subEthnicityCode; | |
32 | protected String subEthnicityCodeUnmasked; | |
33 | ||
34 | protected boolean suppressPersonal; | |
35 | ||
36 | public KimEntityEthnicityInfo() { | |
37 | 0 | super(); |
38 | 0 | } |
39 | ||
40 | public KimEntityEthnicityInfo(KimEntityEthnicity kimEntityEthnicity) { | |
41 | 0 | this(); |
42 | 0 | if ( kimEntityEthnicity != null ) { |
43 | 0 | id = kimEntityEthnicity.getId(); |
44 | 0 | entityId = kimEntityEthnicity.getEntityId(); |
45 | 0 | ethnicityCode = kimEntityEthnicity.getEthnicityCode(); |
46 | 0 | ethnicityCodeUnmasked = kimEntityEthnicity.getEthnicityCodeUnmasked(); |
47 | 0 | subEthnicityCode = kimEntityEthnicity.getSubEthnicityCode(); |
48 | 0 | subEthnicityCodeUnmasked = kimEntityEthnicity.getSubEthnicityCodeUnmasked(); |
49 | 0 | suppressPersonal = kimEntityEthnicity.isSuppressPersonal(); |
50 | } | |
51 | 0 | } |
52 | ||
53 | /** | |
54 | * {@inheritDoc} | |
55 | * @see org.kuali.rice.kim.bo.entity.KimEntityEthnicity#getId() | |
56 | */ | |
57 | public String getId() { | |
58 | 0 | return id; |
59 | } | |
60 | ||
61 | /** | |
62 | * @param id the id to set | |
63 | */ | |
64 | public void setId(String id) { | |
65 | 0 | this.id = id; |
66 | 0 | } |
67 | ||
68 | /** | |
69 | * {@inheritDoc} | |
70 | * @see org.kuali.rice.kim.bo.entity.KimEntityEthnicity#getEntityId() | |
71 | */ | |
72 | public String getEntityId() { | |
73 | 0 | return entityId; |
74 | } | |
75 | ||
76 | /** | |
77 | * @param entityId the entityId to set | |
78 | */ | |
79 | public void setEntityId(String entityId) { | |
80 | 0 | this.entityId = entityId; |
81 | 0 | } |
82 | ||
83 | /** | |
84 | * {@inheritDoc} | |
85 | * @see org.kuali.rice.kim.bo.entity.KimEntityEthnicity#getEthnicityCode() | |
86 | */ | |
87 | public String getEthnicityCode() { | |
88 | 0 | return ethnicityCode; |
89 | } | |
90 | ||
91 | /** | |
92 | * @param ethnicityCode the ethnicityCode to set | |
93 | */ | |
94 | public void setEthnicityCode(String ethnicityCode) { | |
95 | 0 | this.ethnicityCode = ethnicityCode; |
96 | 0 | } |
97 | ||
98 | /** | |
99 | * {@inheritDoc} | |
100 | * @see org.kuali.rice.kim.bo.entity.KimEntityEthnicity#getEthnicityCodeUnmasked() | |
101 | */ | |
102 | public String getEthnicityCodeUnmasked() { | |
103 | 0 | return ethnicityCodeUnmasked; |
104 | } | |
105 | ||
106 | /** | |
107 | * @param ethnicityCodeUnmasked the ethnicityCodeUnmasked to set | |
108 | */ | |
109 | public void setEthnicityCodeUnmasked(String ethnicityCodeUnmasked) { | |
110 | 0 | this.ethnicityCodeUnmasked = ethnicityCodeUnmasked; |
111 | 0 | } |
112 | ||
113 | /** | |
114 | * {@inheritDoc} | |
115 | * @see org.kuali.rice.kim.bo.entity.KimEntityEthnicity#getSubEthnicityCode() | |
116 | */ | |
117 | public String getSubEthnicityCode() { | |
118 | 0 | return subEthnicityCode; |
119 | } | |
120 | ||
121 | /** | |
122 | * @param subEthnicityCode the subEthnicityCode to set | |
123 | */ | |
124 | public void setSubEthnicityCode(String subEthnicityCode) { | |
125 | 0 | this.subEthnicityCode = subEthnicityCode; |
126 | 0 | } |
127 | ||
128 | /** | |
129 | * {@inheritDoc} | |
130 | * @see org.kuali.rice.kim.bo.entity.KimEntityEthnicity#getSubEthnicityCodeUnmasked() | |
131 | */ | |
132 | public String getSubEthnicityCodeUnmasked() { | |
133 | 0 | return subEthnicityCodeUnmasked; |
134 | } | |
135 | ||
136 | /** | |
137 | * @param subEthnicityCodeUnmasked the subEthnicityCodeUnmasked to set | |
138 | */ | |
139 | public void setSubEthnicityCodeUnmasked(String subEthnicityCodeUnmasked) { | |
140 | 0 | this.subEthnicityCodeUnmasked = subEthnicityCodeUnmasked; |
141 | 0 | } |
142 | ||
143 | /** | |
144 | * @return the suppressPersonal | |
145 | */ | |
146 | public boolean isSuppressPersonal() { | |
147 | 0 | return this.suppressPersonal; |
148 | } | |
149 | ||
150 | /** | |
151 | * @param suppressPersonal the suppressPersonal to set | |
152 | */ | |
153 | public void setSuppressPersonal(boolean suppressPersonal) { | |
154 | 0 | this.suppressPersonal = suppressPersonal; |
155 | 0 | } |
156 | ||
157 | } |