Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
PersonEthnicityInfo |
|
| 1.0;1 |
1 | /** | |
2 | * Copyright 2010 The Kuali Foundation Licensed under the | |
3 | * Educational Community License, Version 2.0 (the "License"); you may | |
4 | * not use this file except in compliance with the License. You may | |
5 | * obtain a copy of the License at | |
6 | * | |
7 | * http://www.osedu.org/licenses/ECL-2.0 | |
8 | * | |
9 | * Unless required by applicable law or agreed to in writing, | |
10 | * software distributed under the License is distributed on an "AS IS" | |
11 | * BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express | |
12 | * or implied. See the License for the specific language governing | |
13 | * permissions and limitations under the License. | |
14 | */ | |
15 | ||
16 | package org.kuali.student.core.person.dto; | |
17 | ||
18 | import java.io.Serializable; | |
19 | import java.util.Date; | |
20 | ||
21 | import javax.xml.bind.annotation.XmlAccessType; | |
22 | import javax.xml.bind.annotation.XmlAccessorType; | |
23 | import javax.xml.bind.annotation.XmlAttribute; | |
24 | import javax.xml.bind.annotation.XmlElement; | |
25 | ||
26 | import org.kuali.student.common.dto.Idable; | |
27 | import org.kuali.student.common.dto.MetaInfo; | |
28 | ||
29 | /** | |
30 | *Detailed information about a person's ethnicity (and sub-ethnicity). | |
31 | */ | |
32 | @XmlAccessorType(XmlAccessType.FIELD) | |
33 | 0 | public class PersonEthnicityInfo implements Serializable, Idable { |
34 | ||
35 | private static final long serialVersionUID = 1L; | |
36 | ||
37 | @XmlElement | |
38 | private String personId; | |
39 | ||
40 | @XmlElement | |
41 | private String ethnicityCode; | |
42 | ||
43 | @XmlElement | |
44 | private String subEthnicityCode; | |
45 | ||
46 | @XmlElement | |
47 | private Date effectiveDate; | |
48 | ||
49 | @XmlElement | |
50 | private Date expirationDate; | |
51 | ||
52 | @XmlElement | |
53 | private MetaInfo metaInfo; | |
54 | ||
55 | @XmlAttribute | |
56 | private String id; | |
57 | ||
58 | /** | |
59 | * Unique identifier for a person record. This is optional, due to the identifier being set at the time of creation of the person. Once the person has been created, this should be seen as required. | |
60 | */ | |
61 | public String getPersonId() { | |
62 | 0 | return personId; |
63 | } | |
64 | ||
65 | public void setPersonId(String personId) { | |
66 | 0 | this.personId = personId; |
67 | 0 | } |
68 | ||
69 | /** | |
70 | * Key code for the ethnicity group the person declared | |
71 | */ | |
72 | public String getEthnicityCode() { | |
73 | 0 | return ethnicityCode; |
74 | } | |
75 | ||
76 | public void setEthnicityCode(String ethnicityCode) { | |
77 | 0 | this.ethnicityCode = ethnicityCode; |
78 | 0 | } |
79 | ||
80 | /** | |
81 | * key code for the sub-ethnicity group the person declared | |
82 | */ | |
83 | public String getSubEthnicityCode() { | |
84 | 0 | return subEthnicityCode; |
85 | } | |
86 | ||
87 | public void setSubEthnicityCode(String subEthnicityCode) { | |
88 | 0 | this.subEthnicityCode = subEthnicityCode; |
89 | 0 | } |
90 | ||
91 | /** | |
92 | * Date/Time this became effective | |
93 | */ | |
94 | public Date getEffectiveDate() { | |
95 | 0 | return effectiveDate; |
96 | } | |
97 | ||
98 | public void setEffectiveDate(Date effectiveDate) { | |
99 | 0 | this.effectiveDate = effectiveDate; |
100 | 0 | } |
101 | ||
102 | /** | |
103 | * Date/Time this became no longer effective | |
104 | */ | |
105 | public Date getExpirationDate() { | |
106 | 0 | return expirationDate; |
107 | } | |
108 | ||
109 | public void setExpirationDate(Date expirationDate) { | |
110 | 0 | this.expirationDate = expirationDate; |
111 | 0 | } |
112 | ||
113 | /** | |
114 | * Create and last update info for the structure. This is optional and treated as read only since the data is set by the internals of the service during maintenance operations. | |
115 | */ | |
116 | public MetaInfo getMetaInfo() { | |
117 | 0 | return metaInfo; |
118 | } | |
119 | ||
120 | public void setMetaInfo(MetaInfo metaInfo) { | |
121 | 0 | this.metaInfo = metaInfo; |
122 | 0 | } |
123 | ||
124 | /** | |
125 | * Unique identifier for the ethnicity record. This is set by the service to be able to determine changes and alterations to the structure as well as provides a handle for searches. This structure is not accessible through unique operations, and it is strongly recommended that no external references to this particular identifier be maintained. Once this identifier is set by the service, it should be seen as required and readonly. | |
126 | */ | |
127 | public String getId() { | |
128 | 0 | return id; |
129 | } | |
130 | ||
131 | public void setId(String id) { | |
132 | 0 | this.id = id; |
133 | 0 | } |
134 | } |