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 public LuiIdentifierInfo() {
73 }
74
75
76
77
78
79
80 public LuiIdentifierInfo(LuiIdentifier luiIdentifier) {
81 super(luiIdentifier);
82
83 if(null == luiIdentifier) {
84 return;
85 }
86
87 this.id = luiIdentifier.getId();
88 this.code = luiIdentifier.getCode();
89 this.shortName = luiIdentifier.getShortName();
90 this.longName = luiIdentifier.getLongName();
91 this.division = luiIdentifier.getDivision();
92 this.suffixCode = luiIdentifier.getSuffixCode();
93 this.variation = luiIdentifier.getVariation();
94 }
95
96 @Override
97 public String getId() {
98 return id;
99 }
100
101 public void setId(String id) {
102 this.id = id;
103 }
104
105 @Override
106 public String getCode() {
107 return code;
108 }
109
110 public void setCode(String code) {
111 this.code = code;
112 }
113
114 @Override
115 public String getShortName() {
116 return shortName;
117 }
118
119 public void setShortName(String shortName) {
120 this.shortName = shortName;
121 }
122
123 @Override
124 public String getLongName() {
125 return longName;
126 }
127
128 public void setLongName(String longName) {
129 this.longName = longName;
130 }
131
132 @Override
133 public String getDivision() {
134 return division;
135 }
136
137 public void setDivision(String division) {
138 this.division = division;
139 }
140
141 @Override
142 public String getSuffixCode() {
143 return suffixCode;
144 }
145
146 public void setSuffixCode(String suffixCode) {
147 this.suffixCode = suffixCode;
148 }
149
150 @Override
151 public String getVariation() {
152 return variation;
153 }
154
155 public void setVariation(String variation) {
156 this.variation = variation;
157 }
158 }