1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
|
12 | |
|
13 | |
|
14 | |
|
15 | |
|
16 | |
|
17 | |
package org.kuali.student.enrollment.lui.dto; |
18 | |
|
19 | |
import java.io.Serializable; |
20 | |
import java.util.List; |
21 | |
|
22 | |
import javax.xml.bind.annotation.XmlAccessType; |
23 | |
import javax.xml.bind.annotation.XmlAccessorType; |
24 | |
import javax.xml.bind.annotation.XmlAttribute; |
25 | |
import javax.xml.bind.annotation.XmlAnyElement; |
26 | |
import javax.xml.bind.annotation.XmlElement; |
27 | |
import javax.xml.bind.annotation.XmlType; |
28 | |
|
29 | |
import org.kuali.student.enrollment.lui.infc.LuiIdentifier; |
30 | |
import org.kuali.student.r2.common.dto.TypeStateEntityInfo; |
31 | |
import org.w3c.dom.Element; |
32 | |
|
33 | |
@XmlAccessorType(XmlAccessType.FIELD) |
34 | |
@XmlType(name = "LuiIdentifierInfo", propOrder = { "id", "typeKey", "stateKey", |
35 | |
"code", "shortName", "longName", "division", "suffixCode", |
36 | |
"variation", "meta", "attributes", "_futureElements" }) |
37 | |
|
38 | |
public class LuiIdentifierInfo |
39 | |
extends TypeStateEntityInfo |
40 | |
implements LuiIdentifier, Serializable { |
41 | |
|
42 | |
private static final long serialVersionUID = 1L; |
43 | |
|
44 | |
@XmlAttribute |
45 | |
private String id; |
46 | |
|
47 | |
@XmlElement |
48 | |
private String code; |
49 | |
|
50 | |
@XmlElement |
51 | |
private String shortName; |
52 | |
|
53 | |
@XmlElement |
54 | |
private String longName; |
55 | |
|
56 | |
@XmlElement |
57 | |
private String division; |
58 | |
|
59 | |
@XmlElement |
60 | |
private String suffixCode; |
61 | |
|
62 | |
@XmlElement |
63 | |
private String variation; |
64 | |
|
65 | |
@XmlAnyElement |
66 | |
private List<Element> _futureElements; |
67 | |
|
68 | |
|
69 | |
|
70 | |
|
71 | |
|
72 | 0 | public LuiIdentifierInfo() { |
73 | 0 | } |
74 | |
|
75 | |
|
76 | |
|
77 | |
|
78 | |
|
79 | |
|
80 | |
public LuiIdentifierInfo(LuiIdentifier luiIdentifier) { |
81 | 0 | super(luiIdentifier); |
82 | |
|
83 | 0 | if(null == luiIdentifier) { |
84 | 0 | return; |
85 | |
} |
86 | |
|
87 | 0 | this.id = luiIdentifier.getId(); |
88 | 0 | this.code = luiIdentifier.getCode(); |
89 | 0 | this.shortName = luiIdentifier.getShortName(); |
90 | 0 | this.longName = luiIdentifier.getLongName(); |
91 | 0 | this.division = luiIdentifier.getDivision(); |
92 | 0 | this.suffixCode = luiIdentifier.getSuffixCode(); |
93 | 0 | this.variation = luiIdentifier.getVariation(); |
94 | 0 | } |
95 | |
|
96 | |
@Override |
97 | |
public String getId() { |
98 | 0 | return id; |
99 | |
} |
100 | |
|
101 | |
public void setId(String id) { |
102 | 0 | this.id = id; |
103 | 0 | } |
104 | |
|
105 | |
@Override |
106 | |
public String getCode() { |
107 | 0 | return code; |
108 | |
} |
109 | |
|
110 | |
public void setCode(String code) { |
111 | 0 | this.code = code; |
112 | 0 | } |
113 | |
|
114 | |
@Override |
115 | |
public String getShortName() { |
116 | 0 | return shortName; |
117 | |
} |
118 | |
|
119 | |
public void setShortName(String shortName) { |
120 | 0 | this.shortName = shortName; |
121 | 0 | } |
122 | |
|
123 | |
@Override |
124 | |
public String getLongName() { |
125 | 0 | return longName; |
126 | |
} |
127 | |
|
128 | |
public void setLongName(String longName) { |
129 | 0 | this.longName = longName; |
130 | 0 | } |
131 | |
|
132 | |
@Override |
133 | |
public String getDivision() { |
134 | 0 | return division; |
135 | |
} |
136 | |
|
137 | |
public void setDivision(String division) { |
138 | 0 | this.division = division; |
139 | 0 | } |
140 | |
|
141 | |
@Override |
142 | |
public String getSuffixCode() { |
143 | 0 | return suffixCode; |
144 | |
} |
145 | |
|
146 | |
public void setSuffixCode(String suffixCode) { |
147 | 0 | this.suffixCode = suffixCode; |
148 | 0 | } |
149 | |
|
150 | |
@Override |
151 | |
public String getVariation() { |
152 | 0 | return variation; |
153 | |
} |
154 | |
|
155 | |
public void setVariation(String variation) { |
156 | 0 | this.variation = variation; |
157 | 0 | } |
158 | |
} |