1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
|
12 | |
|
13 | |
|
14 | |
|
15 | |
|
16 | |
package org.kuali.student.r2.core.room.dto; |
17 | |
|
18 | |
import org.kuali.student.r2.common.dto.IdEntityInfo; |
19 | |
import org.kuali.student.r2.core.room.infc.Building; |
20 | |
import org.w3c.dom.Element; |
21 | |
|
22 | |
import javax.xml.bind.annotation.XmlAccessType; |
23 | |
import javax.xml.bind.annotation.XmlAccessorType; |
24 | |
import javax.xml.bind.annotation.XmlAnyElement; |
25 | |
import javax.xml.bind.annotation.XmlElement; |
26 | |
import javax.xml.bind.annotation.XmlType; |
27 | |
import java.io.Serializable; |
28 | |
import java.util.List; |
29 | |
|
30 | |
|
31 | |
|
32 | |
|
33 | |
|
34 | |
|
35 | |
@XmlAccessorType(XmlAccessType.FIELD) |
36 | |
@XmlType(name = "BuildingInfo", propOrder = {"id", "typeKey", "stateKey", |
37 | |
"name", "descr", "buildingCode", "campusKey", "meta", "attributes", "_futureElements"}) |
38 | |
public class BuildingInfo extends IdEntityInfo implements Building, Serializable { |
39 | |
|
40 | |
private static final long serialVersionUID = 1L; |
41 | |
|
42 | |
@XmlElement |
43 | |
private String buildingCode; |
44 | |
|
45 | |
@XmlElement |
46 | |
private String campusKey; |
47 | |
|
48 | |
@XmlAnyElement |
49 | |
private List<Element> _futureElements; |
50 | |
|
51 | 0 | public BuildingInfo() { |
52 | 0 | } |
53 | |
|
54 | |
public BuildingInfo(Building building) { |
55 | 0 | super(building); |
56 | 0 | if (null != building) { |
57 | 0 | this.buildingCode = building.getBuildingCode(); |
58 | 0 | this.campusKey = building.getCampusKey(); |
59 | |
} |
60 | 0 | } |
61 | |
|
62 | |
@Override |
63 | |
public String getBuildingCode() { |
64 | 0 | return buildingCode; |
65 | |
} |
66 | |
|
67 | |
public void setBuildingCode(String buildingCode) { |
68 | 0 | this.buildingCode = buildingCode; |
69 | 0 | } |
70 | |
|
71 | |
@Override |
72 | |
public String getCampusKey() { |
73 | 0 | return this.campusKey; |
74 | |
} |
75 | |
|
76 | |
public void setCampusKey(String campusKey) { |
77 | 0 | this.campusKey = campusKey; |
78 | 0 | } |
79 | |
} |