Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
KimEntityEntityTypeDefaultInfo |
|
| 1.375;1.375 |
1 | /* | |
2 | * Copyright 2008-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 java.io.Serializable; | |
19 | ||
20 | import javax.xml.bind.annotation.XmlElement; | |
21 | ||
22 | import org.kuali.rice.kim.bo.entity.KimEntityAddress; | |
23 | import org.kuali.rice.kim.bo.entity.KimEntityEmail; | |
24 | import org.kuali.rice.kim.bo.entity.KimEntityPhone; | |
25 | ||
26 | /** | |
27 | * entity type default info for a KIM entity | |
28 | * | |
29 | * @author Kuali Rice Team (rice.collab@kuali.org) | |
30 | * | |
31 | */ | |
32 | 0 | public class KimEntityEntityTypeDefaultInfo implements Serializable { |
33 | private static final long serialVersionUID = -6585360231364528118L; | |
34 | ||
35 | protected String entityTypeCode; | |
36 | @XmlElement | |
37 | protected KimEntityAddressInfo defaultAddress; | |
38 | @XmlElement | |
39 | protected KimEntityPhoneInfo defaultPhoneNumber; | |
40 | @XmlElement | |
41 | protected KimEntityEmailInfo defaultEmailAddress; | |
42 | ||
43 | /** | |
44 | * Gets this {@link KimEntityEntityTypeDefaultInfo}'s entity type code. | |
45 | * @return the entity type code for this {@link KimEntityEntityTypeDefaultInfo}, or null if none has been assigned. | |
46 | */ | |
47 | public String getEntityTypeCode() { | |
48 | 0 | return entityTypeCode; |
49 | } | |
50 | ||
51 | public void setEntityTypeCode(String entityTypeCode) { | |
52 | 0 | this.entityTypeCode = entityTypeCode; |
53 | 0 | } |
54 | ||
55 | /** | |
56 | * Gets this {@link KimEntityEntityTypeDefaultInfo}'s default address. | |
57 | * @return the default address for this {@link KimEntityEntityTypeDefaultInfo}, or null if none has been assigned. | |
58 | */ | |
59 | public KimEntityAddressInfo getDefaultAddress() { | |
60 | 0 | return defaultAddress; |
61 | } | |
62 | ||
63 | public void setDefaultAddress(KimEntityAddress defaultAddress) { | |
64 | 0 | if (defaultAddress != null) { |
65 | 0 | this.defaultAddress = new KimEntityAddressInfo(defaultAddress); |
66 | } | |
67 | 0 | } |
68 | ||
69 | /** | |
70 | * Gets this {@link KimEntityEntityTypeDefaultInfo}'s default phone number. | |
71 | * @return the default phone number for this {@link KimEntityEntityTypeDefaultInfo}, or null if none has been assigned. | |
72 | */ | |
73 | public KimEntityPhoneInfo getDefaultPhoneNumber() { | |
74 | 0 | return defaultPhoneNumber; |
75 | } | |
76 | ||
77 | public void setDefaultPhoneNumber(KimEntityPhone defaultPhoneNumber) { | |
78 | 0 | if (defaultPhoneNumber != null) { |
79 | 0 | this.defaultPhoneNumber = new KimEntityPhoneInfo(defaultPhoneNumber); |
80 | } | |
81 | 0 | } |
82 | ||
83 | /** | |
84 | * Gets this {@link KimEntityEntityTypeDefaultInfo}'s default email address. | |
85 | * @return the default email address for this {@link KimEntityEntityTypeDefaultInfo}, or null if none has been assigned. | |
86 | */ | |
87 | public KimEntityEmailInfo getDefaultEmailAddress() { | |
88 | 0 | return defaultEmailAddress; |
89 | } | |
90 | ||
91 | public void setDefaultEmailAddress(KimEntityEmail defaultEmailAddress) { | |
92 | 0 | if (defaultEmailAddress != null) { |
93 | 0 | this.defaultEmailAddress = new KimEntityEmailInfo(defaultEmailAddress); |
94 | } | |
95 | 0 | } |
96 | } |