1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
|
12 | |
|
13 | |
|
14 | |
|
15 | |
|
16 | |
package org.kuali.student.lum.lu.dto; |
17 | |
|
18 | |
import java.io.Serializable; |
19 | |
import java.util.Date; |
20 | |
import java.util.HashMap; |
21 | |
import java.util.Map; |
22 | |
|
23 | |
import javax.xml.bind.annotation.XmlAccessType; |
24 | |
import javax.xml.bind.annotation.XmlAccessorType; |
25 | |
import javax.xml.bind.annotation.XmlAttribute; |
26 | |
import javax.xml.bind.annotation.XmlElement; |
27 | |
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; |
28 | |
|
29 | |
import org.kuali.student.common.dto.HasAttributes; |
30 | |
import org.kuali.student.common.dto.Idable; |
31 | |
import org.kuali.student.core.ws.binding.JaxbAttributeMapListAdapter; |
32 | |
|
33 | |
|
34 | |
|
35 | |
|
36 | |
@XmlAccessorType(XmlAccessType.FIELD) |
37 | 0 | public class LuDocRelationTypeInfo implements Serializable, Idable, HasAttributes { |
38 | |
|
39 | |
private static final long serialVersionUID = 1L; |
40 | |
|
41 | |
@XmlElement |
42 | |
private String name; |
43 | |
|
44 | |
@XmlElement |
45 | |
private String desc; |
46 | |
|
47 | |
@XmlElement |
48 | |
private Date effectiveDate; |
49 | |
|
50 | |
@XmlElement |
51 | |
private Date expirationDate; |
52 | |
|
53 | |
@XmlElement |
54 | |
@XmlJavaTypeAdapter(JaxbAttributeMapListAdapter.class) |
55 | |
private Map<String, String> attributes; |
56 | |
|
57 | |
@XmlAttribute(name="key") |
58 | |
private String id; |
59 | |
|
60 | |
|
61 | |
|
62 | |
|
63 | |
public String getName() { |
64 | 0 | return name; |
65 | |
} |
66 | |
|
67 | |
public void setName(String name) { |
68 | 0 | this.name = name; |
69 | 0 | } |
70 | |
|
71 | |
|
72 | |
|
73 | |
|
74 | |
public String getDesc() { |
75 | 0 | return desc; |
76 | |
} |
77 | |
|
78 | |
public void setDesc(String desc) { |
79 | 0 | this.desc = desc; |
80 | 0 | } |
81 | |
|
82 | |
|
83 | |
|
84 | |
|
85 | |
public Date getEffectiveDate() { |
86 | 0 | return effectiveDate; |
87 | |
} |
88 | |
|
89 | |
public void setEffectiveDate(Date effectiveDate) { |
90 | 0 | this.effectiveDate = effectiveDate; |
91 | 0 | } |
92 | |
|
93 | |
|
94 | |
|
95 | |
|
96 | |
public Date getExpirationDate() { |
97 | 0 | return expirationDate; |
98 | |
} |
99 | |
|
100 | |
public void setExpirationDate(Date expirationDate) { |
101 | 0 | this.expirationDate = expirationDate; |
102 | 0 | } |
103 | |
|
104 | |
|
105 | |
|
106 | |
|
107 | |
public Map<String, String> getAttributes() { |
108 | 0 | if (attributes == null) { |
109 | 0 | attributes = new HashMap<String, String>(); |
110 | |
} |
111 | 0 | return attributes; |
112 | |
} |
113 | |
|
114 | |
public void setAttributes(Map<String, String> attributes) { |
115 | 0 | this.attributes = attributes; |
116 | 0 | } |
117 | |
|
118 | |
|
119 | |
|
120 | |
|
121 | |
public String getId() { |
122 | 0 | return id; |
123 | |
} |
124 | |
|
125 | |
public void setId(String id) { |
126 | 0 | this.id = id; |
127 | 0 | } |
128 | |
} |