1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
|
12 | |
|
13 | |
|
14 | |
|
15 | |
|
16 | |
package org.kuali.student.lum.course.dto; |
17 | |
|
18 | |
import java.io.Serializable; |
19 | |
import java.util.ArrayList; |
20 | |
import java.util.HashMap; |
21 | |
import java.util.List; |
22 | |
import java.util.Map; |
23 | |
|
24 | |
import javax.xml.bind.annotation.XmlAccessType; |
25 | |
import javax.xml.bind.annotation.XmlAccessorType; |
26 | |
import javax.xml.bind.annotation.XmlAttribute; |
27 | |
import javax.xml.bind.annotation.XmlElement; |
28 | |
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; |
29 | |
|
30 | |
import org.kuali.student.core.dto.HasAttributes; |
31 | |
import org.kuali.student.core.dto.HasTypeState; |
32 | |
import org.kuali.student.core.dto.Idable; |
33 | |
import org.kuali.student.core.dto.MetaInfo; |
34 | |
import org.kuali.student.core.ws.binding.JaxbAttributeMapListAdapter; |
35 | |
|
36 | |
|
37 | |
|
38 | |
|
39 | |
|
40 | |
|
41 | |
|
42 | |
|
43 | |
|
44 | |
|
45 | |
@XmlAccessorType(XmlAccessType.FIELD) |
46 | 0 | public class FormatInfo implements Serializable, Idable, HasTypeState, HasAttributes { |
47 | |
|
48 | |
private static final long serialVersionUID = 1L; |
49 | |
|
50 | |
@XmlElement |
51 | |
private List<ActivityInfo> activities; |
52 | |
|
53 | |
@XmlElement |
54 | |
@XmlJavaTypeAdapter(JaxbAttributeMapListAdapter.class) |
55 | |
private Map<String, String> attributes; |
56 | |
|
57 | |
@XmlElement |
58 | |
private MetaInfo metaInfo; |
59 | |
|
60 | |
@XmlAttribute |
61 | |
private String type; |
62 | |
|
63 | |
@XmlAttribute |
64 | |
private String state; |
65 | |
|
66 | |
@XmlAttribute |
67 | |
private String id; |
68 | |
|
69 | |
|
70 | |
|
71 | |
|
72 | |
public List<ActivityInfo> getActivities() { |
73 | 0 | if (activities == null) { |
74 | 0 | activities = new ArrayList<ActivityInfo>(0); |
75 | |
} |
76 | 0 | return activities; |
77 | |
} |
78 | |
|
79 | |
public void setActivities(List<ActivityInfo> activities) { |
80 | 0 | this.activities = activities; |
81 | 0 | } |
82 | |
|
83 | |
|
84 | |
|
85 | |
|
86 | |
public Map<String, String> getAttributes() { |
87 | 0 | if (attributes == null) { |
88 | 0 | attributes = new HashMap<String, String>(); |
89 | |
} |
90 | 0 | return attributes; |
91 | |
} |
92 | |
|
93 | |
public void setAttributes(Map<String, String> attributes) { |
94 | 0 | this.attributes = attributes; |
95 | 0 | } |
96 | |
|
97 | |
|
98 | |
|
99 | |
|
100 | |
public MetaInfo getMetaInfo() { |
101 | 0 | return metaInfo; |
102 | |
} |
103 | |
|
104 | |
public void setMetaInfo(MetaInfo metaInfo) { |
105 | 0 | this.metaInfo = metaInfo; |
106 | 0 | } |
107 | |
|
108 | |
|
109 | |
|
110 | |
|
111 | |
public String getType() { |
112 | 0 | return type; |
113 | |
} |
114 | |
|
115 | |
public void setType(String type) { |
116 | 0 | this.type = type; |
117 | 0 | } |
118 | |
|
119 | |
|
120 | |
|
121 | |
|
122 | |
public String getState() { |
123 | 0 | return state; |
124 | |
} |
125 | |
|
126 | |
public void setState(String state) { |
127 | 0 | this.state = state; |
128 | 0 | } |
129 | |
|
130 | |
|
131 | |
|
132 | |
|
133 | |
public String getId() { |
134 | 0 | return id; |
135 | |
} |
136 | |
|
137 | |
public void setId(String id) { |
138 | 0 | this.id = id; |
139 | 0 | } |
140 | |
} |