1 |
|
|
2 |
|
package org.kuali.student.security.policy.dto; |
3 |
|
|
4 |
|
import java.util.ArrayList; |
5 |
|
import java.util.HashMap; |
6 |
|
import java.util.List; |
7 |
|
import java.util.Map; |
8 |
|
import javax.xml.bind.annotation.XmlAccessType; |
9 |
|
import javax.xml.bind.annotation.XmlAccessorType; |
10 |
|
import javax.xml.bind.annotation.XmlAnyAttribute; |
11 |
|
import javax.xml.bind.annotation.XmlAnyElement; |
12 |
|
import javax.xml.bind.annotation.XmlElement; |
13 |
|
import javax.xml.bind.annotation.XmlElements; |
14 |
|
import javax.xml.bind.annotation.XmlRootElement; |
15 |
|
import javax.xml.bind.annotation.XmlType; |
16 |
|
import javax.xml.namespace.QName; |
17 |
|
import org.w3c.dom.Element; |
18 |
|
|
19 |
|
|
20 |
|
|
21 |
|
|
22 |
|
|
23 |
|
|
24 |
|
|
25 |
|
|
26 |
|
|
27 |
|
|
28 |
|
|
29 |
|
|
30 |
|
|
31 |
|
|
32 |
|
|
33 |
|
|
34 |
|
|
35 |
|
|
36 |
|
|
37 |
|
|
38 |
|
|
39 |
|
|
40 |
|
|
41 |
|
|
42 |
|
|
43 |
|
|
44 |
|
|
45 |
|
@XmlAccessorType(XmlAccessType.FIELD) |
46 |
|
@XmlType(name = "", propOrder = { |
47 |
|
"appliesTo", |
48 |
|
"policyOrPolicyReference", |
49 |
|
"any" |
50 |
|
}) |
51 |
|
@XmlRootElement(name = "PolicyAttachment") |
|
|
| 0% |
Uncovered Elements: 18 (18) |
Complexity: 7 |
Complexity Density: 0.78 |
|
52 |
|
public class PolicyAttachment { |
53 |
|
|
54 |
|
@XmlElement(name = "AppliesTo", required = true) |
55 |
|
protected AppliesTo appliesTo; |
56 |
|
@XmlElements({ |
57 |
|
@XmlElement(name = "PolicyReference", type = PolicyReference.class), |
58 |
|
@XmlElement(name = "Policy", type = Policy.class) |
59 |
|
}) |
60 |
|
protected List<Object> policyOrPolicyReference; |
61 |
|
@XmlAnyElement(lax = true) |
62 |
|
protected List<Object> any; |
63 |
|
@XmlAnyAttribute |
64 |
|
private Map<QName, String> otherAttributes = new HashMap<QName, String>(); |
65 |
|
|
66 |
|
|
67 |
|
|
68 |
|
|
69 |
|
@return |
70 |
|
|
71 |
|
@link |
72 |
|
|
73 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
74 |
0
|
public AppliesTo getAppliesTo() {... |
75 |
0
|
return appliesTo; |
76 |
|
} |
77 |
|
|
78 |
|
|
79 |
|
|
80 |
|
|
81 |
|
@param |
82 |
|
|
83 |
|
@link |
84 |
|
|
85 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
86 |
0
|
public void setAppliesTo(AppliesTo value) {... |
87 |
0
|
this.appliesTo = value; |
88 |
|
} |
89 |
|
|
90 |
|
|
91 |
|
|
92 |
|
|
93 |
|
|
94 |
|
|
95 |
|
|
96 |
|
|
97 |
|
|
98 |
|
|
99 |
|
|
100 |
|
|
101 |
|
|
102 |
|
|
103 |
|
|
104 |
|
|
105 |
|
|
106 |
|
|
107 |
|
|
108 |
|
@link |
109 |
|
@link |
110 |
|
|
111 |
|
|
112 |
|
|
|
|
| 0% |
Uncovered Elements: 5 (5) |
Complexity: 2 |
Complexity Density: 0.67 |
|
113 |
0
|
public List<Object> getPolicyOrPolicyReference() {... |
114 |
0
|
if (policyOrPolicyReference == null) { |
115 |
0
|
policyOrPolicyReference = new ArrayList<Object>(); |
116 |
|
} |
117 |
0
|
return this.policyOrPolicyReference; |
118 |
|
} |
119 |
|
|
120 |
|
|
121 |
|
|
122 |
|
|
123 |
|
|
124 |
|
|
125 |
|
|
126 |
|
|
127 |
|
|
128 |
|
|
129 |
|
|
130 |
|
|
131 |
|
|
132 |
|
|
133 |
|
|
134 |
|
|
135 |
|
|
136 |
|
|
137 |
|
|
138 |
|
@link |
139 |
|
@link |
140 |
|
|
141 |
|
|
142 |
|
|
|
|
| 0% |
Uncovered Elements: 5 (5) |
Complexity: 2 |
Complexity Density: 0.67 |
|
143 |
0
|
public List<Object> getAny() {... |
144 |
0
|
if (any == null) { |
145 |
0
|
any = new ArrayList<Object>(); |
146 |
|
} |
147 |
0
|
return this.any; |
148 |
|
} |
149 |
|
|
150 |
|
|
151 |
|
|
152 |
|
|
153 |
|
|
154 |
|
|
155 |
|
|
156 |
|
|
157 |
|
|
158 |
|
|
159 |
|
|
160 |
|
|
161 |
|
@return |
162 |
|
|
163 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
164 |
0
|
public Map<QName, String> getOtherAttributes() {... |
165 |
0
|
return otherAttributes; |
166 |
|
} |
167 |
|
|
168 |
|
} |