Clover Coverage Report - Kuali Student 1.2-M4-SNAPSHOT (Aggregated)
Coverage timestamp: Wed Jul 20 2011 11:14:35 EDT
../../../../../../img/srcFileCovDistChart0.png 41% of files have more coverage
22   186   21   1.1
2   103   0.95   20
20     1.05  
1    
 
  PersonResidencyInfo       Line # 39 22 0% 21 44 0% 0.0
 
No Tests
 
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    import java.util.HashMap;
21    import java.util.Map;
22   
23    import javax.xml.bind.annotation.XmlAccessType;
24    import javax.xml.bind.annotation.XmlAccessorType;
25    import javax.xml.bind.annotation.XmlAttribute;
26    import javax.xml.bind.annotation.XmlElement;
27    import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
28   
29    import org.kuali.student.common.dto.HasAttributes;
30    import org.kuali.student.common.dto.HasTypeState;
31    import org.kuali.student.common.dto.Idable;
32    import org.kuali.student.common.dto.MetaInfo;
33    import org.kuali.student.core.ws.binding.JaxbAttributeMapListAdapter;
34   
35    /**
36    *Detailed information about a student's residency.
37    */
38    @XmlAccessorType(XmlAccessType.FIELD)
 
39    public class PersonResidencyInfo implements Serializable, Idable, HasTypeState, HasAttributes {
40   
41    private static final long serialVersionUID = 1L;
42   
43    @XmlElement
44    private String personId;
45   
46    @XmlElement
47    private String determinationMethod;
48   
49    @XmlElement
50    private String inStateFlag;
51   
52    @XmlElement
53    private Date effectiveDate;
54   
55    @XmlElement
56    private Date expirationDate;
57   
58    @XmlElement
59    @XmlJavaTypeAdapter(JaxbAttributeMapListAdapter.class)
60    private Map<String, String> attributes;
61   
62    @XmlElement
63    private MetaInfo metaInfo;
64   
65    @XmlAttribute
66    private String type;
67   
68    @XmlAttribute
69    private String state;
70   
71    @XmlAttribute
72    private String id;
73   
74    /**
75    * 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.
76    */
 
77  0 toggle public String getPersonId() {
78  0 return personId;
79    }
80   
 
81  0 toggle public void setPersonId(String personId) {
82  0 this.personId = personId;
83    }
84   
85    /**
86    * Source or proof to determine residency.
87    */
 
88  0 toggle public String getDeterminationMethod() {
89  0 return determinationMethod;
90    }
91   
 
92  0 toggle public void setDeterminationMethod(String determinationMethod) {
93  0 this.determinationMethod = determinationMethod;
94    }
95   
96    /**
97    * Flag indicates whether a student is considered to reside in state.
98    */
 
99  0 toggle public String getInStateFlag() {
100  0 return inStateFlag;
101    }
102   
 
103  0 toggle public void setInStateFlag(String inStateFlag) {
104  0 this.inStateFlag = inStateFlag;
105    }
106   
107    /**
108    * Date and time that this residency record became effective. This is a similar concept to the effective date on enumerated values. When an expiration date has been specified, this field must be less than or equal to the expiration date.
109    */
 
110  0 toggle public Date getEffectiveDate() {
111  0 return effectiveDate;
112    }
113   
 
114  0 toggle public void setEffectiveDate(Date effectiveDate) {
115  0 this.effectiveDate = effectiveDate;
116    }
117   
118    /**
119    * Date and time that this residency record expires. This is a similar concept to the expiration date on enumerated values. If specified, this must be greater than or equal to the effective date. If this field is not specified, then no expiration date has been currently defined and should automatically be considered greater than the effective date.
120    */
 
121  0 toggle public Date getExpirationDate() {
122  0 return expirationDate;
123    }
124   
 
125  0 toggle public void setExpirationDate(Date expirationDate) {
126  0 this.expirationDate = expirationDate;
127    }
128   
129    /**
130    * List of key/value pairs, typically used for dynamic attributes.
131    */
 
132  0 toggle public Map<String, String> getAttributes() {
133  0 if (attributes == null) {
134  0 attributes = new HashMap<String, String>();
135    }
136  0 return attributes;
137    }
138   
 
139  0 toggle public void setAttributes(Map<String, String> attributes) {
140  0 this.attributes = attributes;
141    }
142   
143    /**
144    * 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.
145    */
 
146  0 toggle public MetaInfo getMetaInfo() {
147  0 return metaInfo;
148    }
149   
 
150  0 toggle public void setMetaInfo(MetaInfo metaInfo) {
151  0 this.metaInfo = metaInfo;
152    }
153   
154    /**
155    * Key code for the residency type.
156    */
 
157  0 toggle public String getType() {
158  0 return type;
159    }
160   
 
161  0 toggle public void setType(String type) {
162  0 this.type = type;
163    }
164   
165    /**
166    * The current status of the residency record. The values for this field are constrained to those in the personResidencyState enumeration. A separate setup operation does not exist for retrieval of the meta data around this value.
167    */
 
168  0 toggle public String getState() {
169  0 return state;
170    }
171   
 
172  0 toggle public void setState(String state) {
173  0 this.state = state;
174    }
175   
176    /**
177    * Unique identifier for the residency 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.
178    */
 
179  0 toggle public String getId() {
180  0 return id;
181    }
182   
 
183  0 toggle public void setId(String id) {
184  0 this.id = id;
185    }
186    }