1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
|
12 | |
|
13 | |
|
14 | |
|
15 | |
|
16 | |
package org.kuali.student.core.statement.dto; |
17 | |
|
18 | |
import java.io.Serializable; |
19 | |
import java.util.HashMap; |
20 | |
import java.util.Map; |
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.XmlElement; |
26 | |
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; |
27 | |
|
28 | |
import org.kuali.student.common.dto.HasAttributes; |
29 | |
import org.kuali.student.common.dto.HasTypeState; |
30 | |
import org.kuali.student.common.dto.Idable; |
31 | |
import org.kuali.student.common.dto.MetaInfo; |
32 | |
import org.kuali.student.common.dto.RichTextInfo; |
33 | |
import org.kuali.student.core.ws.binding.JaxbAttributeMapListAdapter; |
34 | |
|
35 | |
|
36 | |
|
37 | |
|
38 | |
@XmlAccessorType(XmlAccessType.FIELD) |
39 | 0 | public abstract class AbstractStatementInfo implements Serializable, Idable, HasTypeState, HasAttributes { |
40 | |
|
41 | |
private static final long serialVersionUID = 1L; |
42 | |
|
43 | |
@XmlElement |
44 | |
private String name; |
45 | |
|
46 | |
@XmlElement |
47 | |
private RichTextInfo desc; |
48 | |
|
49 | |
@XmlElement |
50 | |
private StatementOperatorTypeKey operator; |
51 | |
|
52 | |
@XmlElement |
53 | |
@XmlJavaTypeAdapter(JaxbAttributeMapListAdapter.class) |
54 | |
private Map<String, String> attributes; |
55 | |
|
56 | |
@XmlElement |
57 | |
private MetaInfo metaInfo; |
58 | |
|
59 | |
@XmlAttribute |
60 | |
private String type; |
61 | |
|
62 | |
@XmlAttribute |
63 | |
private String state; |
64 | |
|
65 | |
@XmlAttribute |
66 | |
private String id; |
67 | |
|
68 | |
|
69 | |
|
70 | |
|
71 | |
public String getName() { |
72 | 0 | return name; |
73 | |
} |
74 | |
|
75 | |
public void setName(String name) { |
76 | 0 | this.name = name; |
77 | 0 | } |
78 | |
|
79 | |
|
80 | |
|
81 | |
|
82 | |
public RichTextInfo getDesc() { |
83 | 0 | return desc; |
84 | |
} |
85 | |
|
86 | |
public void setDesc(RichTextInfo desc) { |
87 | 0 | this.desc = desc; |
88 | 0 | } |
89 | |
|
90 | |
|
91 | |
|
92 | |
|
93 | |
public StatementOperatorTypeKey getOperator() { |
94 | 0 | return operator; |
95 | |
} |
96 | |
|
97 | |
public void setOperator(StatementOperatorTypeKey operator) { |
98 | 0 | this.operator = operator; |
99 | 0 | } |
100 | |
|
101 | |
|
102 | |
|
103 | |
|
104 | |
public Map<String, String> getAttributes() { |
105 | 0 | if (attributes == null) { |
106 | 0 | attributes = new HashMap<String, String>(); |
107 | |
} |
108 | 0 | return attributes; |
109 | |
} |
110 | |
|
111 | |
public void setAttributes(Map<String, String> attributes) { |
112 | 0 | this.attributes = attributes; |
113 | 0 | } |
114 | |
|
115 | |
|
116 | |
|
117 | |
|
118 | |
public MetaInfo getMetaInfo() { |
119 | 0 | return metaInfo; |
120 | |
} |
121 | |
|
122 | |
public void setMetaInfo(MetaInfo metaInfo) { |
123 | 0 | this.metaInfo = metaInfo; |
124 | 0 | } |
125 | |
|
126 | |
|
127 | |
|
128 | |
|
129 | |
public String getType() { |
130 | 0 | return type; |
131 | |
} |
132 | |
|
133 | |
public void setType(String type) { |
134 | 0 | this.type = type; |
135 | 0 | } |
136 | |
|
137 | |
|
138 | |
|
139 | |
|
140 | |
public String getState() { |
141 | 0 | return state; |
142 | |
} |
143 | |
|
144 | |
public void setState(String state) { |
145 | 0 | this.state = state; |
146 | 0 | } |
147 | |
|
148 | |
|
149 | |
|
150 | |
|
151 | |
public String getId() { |
152 | 0 | return id; |
153 | |
} |
154 | |
|
155 | |
public void setId(String id) { |
156 | 0 | this.id = id; |
157 | 0 | } |
158 | |
|
159 | |
@Override |
160 | |
public String toString() { |
161 | 0 | return "StatementInfo[id=" + id + ", operator=" + operator + ", type=" |
162 | |
+ type + ", state=" + state + "]"; |
163 | |
} |
164 | |
} |