1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
|
12 | |
|
13 | |
|
14 | |
|
15 | |
|
16 | |
|
17 | |
package org.kuali.student.r2.common.dto; |
18 | |
|
19 | |
import java.io.Serializable; |
20 | |
|
21 | |
import javax.xml.bind.annotation.XmlAttribute; |
22 | |
import javax.xml.bind.annotation.XmlTransient; |
23 | |
|
24 | |
import org.kuali.student.r2.common.infc.TypeStateEntity; |
25 | |
|
26 | |
|
27 | |
|
28 | |
|
29 | |
|
30 | |
|
31 | |
|
32 | |
|
33 | |
@SuppressWarnings("serial") |
34 | |
@XmlTransient |
35 | |
public abstract class TypeStateEntityInfo |
36 | |
extends HasAttributesAndMetaInfo |
37 | |
implements TypeStateEntity, Serializable { |
38 | |
|
39 | |
@XmlAttribute |
40 | |
private String typeKey; |
41 | |
|
42 | |
@XmlAttribute |
43 | |
private String stateKey; |
44 | |
|
45 | |
|
46 | |
|
47 | |
|
48 | |
|
49 | 0 | public TypeStateEntityInfo() { |
50 | 0 | } |
51 | |
|
52 | |
|
53 | |
|
54 | |
|
55 | |
|
56 | |
|
57 | |
|
58 | |
public TypeStateEntityInfo(TypeStateEntity entity) { |
59 | 0 | super(entity); |
60 | 0 | if (null != entity) { |
61 | 0 | this.typeKey = entity.getTypeKey(); |
62 | 0 | this.stateKey = entity.getStateKey(); |
63 | |
} |
64 | 0 | } |
65 | |
|
66 | |
@Override |
67 | |
public String getTypeKey() { |
68 | 0 | return typeKey; |
69 | |
} |
70 | |
|
71 | |
public void setTypeKey(String typeKey) { |
72 | 0 | this.typeKey = typeKey; |
73 | 0 | } |
74 | |
|
75 | |
@Override |
76 | |
public String getStateKey() { |
77 | 0 | return stateKey; |
78 | |
} |
79 | |
|
80 | |
public void setStateKey(String stateKey) { |
81 | 0 | this.stateKey = stateKey; |
82 | 0 | } |
83 | |
|
84 | |
|
85 | |
|
86 | |
|
87 | |
@Override |
88 | |
@Deprecated |
89 | |
public String getType() { |
90 | 0 | return getTypeKey(); |
91 | |
} |
92 | |
|
93 | |
@Deprecated |
94 | |
public void setType(String typeKey) { |
95 | 0 | setTypeKey(typeKey); |
96 | 0 | } |
97 | |
|
98 | |
@Override |
99 | |
@Deprecated |
100 | |
public String getState() { |
101 | 0 | return this.getStateKey(); |
102 | |
} |
103 | |
|
104 | |
@Deprecated |
105 | |
public void setState(String stateKey) { |
106 | 0 | setStateKey(stateKey); |
107 | 0 | } |
108 | |
} |