-
Notifications
You must be signed in to change notification settings - Fork 8
/
PolicySetType.java
executable file
·259 lines (233 loc) · 10.1 KB
/
PolicySetType.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.5-b10
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2012.06.01 at 04:14:23 PM CEST
//
package nl.uva.sne.xacml.profiles._2_0_.policy;
import javax.xml.bind.JAXBElement;
import javax.xml.bind.annotation.*;
import java.util.ArrayList;
import java.util.List;
/**
* <p>Java class for PolicySetType complex type.
* <p/>
* <p>The following schema fragment specifies the expected content contained within this class.
* <p/>
* <pre>
* <complexType name="PolicySetType">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element ref="{urn:oasis:names:tc:xacml:2.0:policy:schema:os}Description" minOccurs="0"/>
* <element ref="{urn:oasis:names:tc:xacml:2.0:policy:schema:os}PolicySetDefaults" minOccurs="0"/>
* <element ref="{urn:oasis:names:;tc:xacml:2.0:policy:schema:os}Target"/>
* <choice maxOccurs="unbounded" minOccurs="0">
* <element name="PolicySet" type="{urn:oasis:names:tc:xacml:2.0:policy:schema:os}PolicySetType"/>
* <element name="Policy" type="{urn:oasis:names:tc:xacml:2.0:policy:schema:os}PolicyType"/>
* <element name="PolicySetIdReference" type="{urn:oasis:names:tc:xacml:2.0:policy:schema:os}IdReferenceType"/>
* <element name="PolicyIdReference" type="{urn:oasis:names:tc:xacml:2.0:policy:schema:os}IdReferenceType"/>
* <element name="CombinerParameters" type="{urn:oasis:names:tc:xacml:2.0:policy:schema:os}CombinerParametersType"/>
* <element name="PolicyCombinerParameters" type="{urn:oasis:names:tc:xacml:2.0:policy:schema:os}PolicyCombinerParametersType"/>
* <element name="PolicySetCombinerParameters" type="{urn:oasis:names:tc:xacml:2.0:policy:schema:os}PolicySetCombinerParametersType"/>
* </choice>
* <element ref="{urn:oasis:names:tc:xacml:2.0:policy:schema:os}Obligations" minOccurs="0"/>
* </sequence>
* <attribute name="PolicySetId" use="required" type="{http://www.w3.org/2001/XMLSchema}anyURI" />
* <attribute name="Version" type="{urn:oasis:names:tc:xacml:2.0:policy:schema:os}VersionType" default="1.0"
* />
* <attribute name="PolicyCombiningAlgId" use="required" type="{http://www.w3.org/2001/XMLSchema}anyURI" />
* </restriction>
* </complexContent>
* </complexType>
* </pre>
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "PolicySetType", propOrder = {
"description",
"policySetDefaults",
"target",
"policySetOrPolicyOrPolicySetIdReference",
"obligations"
})
public class PolicySetType {
@XmlElement(name = "Description")
protected String description;
@XmlElement(name = "Obligations")
protected ObligationsType obligations;
@XmlAttribute(name = "PolicyCombiningAlgId", required = true)
@XmlSchemaType(name = "anyURI")
protected String policyCombiningAlgId;
// @XmlElementRefs({
// @XmlElementRef(name = "PolicySetCombinerParameters", namespace = "urn:oasis:names:tc:xacml:2.0:policy:schema:os", type = JAXBElement.class),
// @XmlElementRef(name = "PolicySetIdReference", namespace = "urn:oasis:names:tc:xacml:2.0:policy:schema:os", type = JAXBElement.class),
// @XmlElementRef(name = "PolicyCombinerParameters", namespace = "urn:oasis:names:tc:xacml:2.0:policy:schema:os", type = JAXBElement.class),
// @XmlElementRef(name = "PolicySet", namespace = "urn:oasis:names:tc:xacml:2.0:policy:schema:os", type = JAXBElement.class),
// @XmlElementRef(name = "CombinerParameters", namespace = "urn:oasis:names:tc:xacml:2.0:policy:schema:os", type = JAXBElement.class),
// @XmlElementRef(name = "Policy", namespace = "urn:oasis:names:tc:xacml:2.0:policy:schema:os", type = PolicyType.class),
// @XmlElementRef(name = "PolicyIdReference", namespace = "urn:oasis:names:tc:xacml:2.0:policy:schema:os", type = JAXBElement.class)
// })
@XmlElement(name = "PolicySetDefaults")
protected DefaultsType policySetDefaults;
@XmlAttribute(name = "PolicySetId", required = true)
@XmlSchemaType(name = "anyURI")
protected String policySetId;
@XmlElements(value = {
@XmlElement(name = "PolicySetCombinerParameters", namespace = "urn:oasis:names:tc:xacml:2.0:policy:schema:os", type = PolicySetCombinerParametersType.class),
@XmlElement(name = "PolicySetIdReference", namespace = "urn:oasis:names:tc:xacml:2.0:policy:schema:os", type = IdReferenceType.class),
@XmlElement(name = "PolicyCombinerParameters", namespace = "urn:oasis:names:tc:xacml:2.0:policy:schema:os", type = PolicyCombinerParametersType.class),
@XmlElement(name = "PolicySet", namespace = "urn:oasis:names:tc:xacml:2.0:policy:schema:os", type = PolicySetType.class),
@XmlElement(name = "CombinerParameters", namespace = "urn:oasis:names:tc:xacml:2.0:policy:schema:os", type = CombinerParametersType.class),
@XmlElement(name = "Policy", namespace = "urn:oasis:names:tc:xacml:2.0:policy:schema:os", type = PolicyType.class),
@XmlElement(name = "PolicyIdReference", namespace = "urn:oasis:names:tc:xacml:2.0:policy:schema:os", type = IdReferenceType.class)
})
protected List<Object> policySetOrPolicyOrPolicySetIdReference;
@XmlElement(name = "Target", required = true)
protected TargetType target;
@XmlAttribute(name = "Version")
protected String version;
/**
* Gets the value of the description property.
*
* @return possible object is {@link String }
*/
public String getDescription() {
return description;
}
/**
* Gets the value of the obligations property.
*
* @return possible object is {@link ObligationsType }
*/
public ObligationsType getObligations() {
return obligations;
}
/**
* Gets the value of the policyCombiningAlgId property.
*
* @return possible object is {@link String }
*/
public String getPolicyCombiningAlgId() {
return policyCombiningAlgId;
}
/**
* Gets the value of the policySetDefaults property.
*
* @return possible object is {@link DefaultsType }
*/
public DefaultsType getPolicySetDefaults() {
return policySetDefaults;
}
/**
* Gets the value of the policySetId property.
*
* @return possible object is {@link String }
*/
public String getPolicySetId() {
return policySetId;
}
/**
* Gets the value of the policySetOrPolicyOrPolicySetIdReference property.
* <p/>
* <p/>
* This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to
* the returned list will be present inside the JAXB object. This is why there is not a <CODE>set</CODE> method for
* the policySetOrPolicyOrPolicySetIdReference property.
* <p/>
* <p/>
* For example, to add a new item, do as follows:
* <pre>
* getPolicySetOrPolicyOrPolicySetIdReference().add(newItem);
* </pre>
* <p/>
* <p/>
* <p/>
* Objects of the following type(s) are allowed in the list {@link JAXBElement }{@code <}{@link
* PolicySetCombinerParametersType }{@code >} {@link JAXBElement }{@code <}{@link IdReferenceType }{@code >} {@link
* JAXBElement }{@code <}{@link PolicyCombinerParametersType }{@code >} {@link JAXBElement }{@code <}{@link
* PolicySetType }{@code >} {@link JAXBElement }{@code <}{@link CombinerParametersType }{@code >} {@link JAXBElement
* }{@code <}{@link PolicyType }{@code >} {@link JAXBElement }{@code <}{@link IdReferenceType }{@code >}
*/
public List<Object> getPolicySetOrPolicyOrPolicySetIdReference() {
if (policySetOrPolicyOrPolicySetIdReference == null) {
policySetOrPolicyOrPolicySetIdReference = new ArrayList<Object>();
}
return this.policySetOrPolicyOrPolicySetIdReference;
}
/**
* Gets the value of the target property.
*
* @return possible object is {@link TargetType }
*/
public TargetType getTarget() {
return target;
}
/**
* Gets the value of the version property.
*
* @return possible object is {@link String }
*/
public String getVersion() {
if (version == null) {
return "1.0";
} else {
return version;
}
}
/**
* Sets the value of the description property.
*
* @param value allowed object is {@link String }
*/
public void setDescription(String value) {
this.description = value;
}
/**
* Sets the value of the obligations property.
*
* @param value allowed object is {@link ObligationsType }
*/
public void setObligations(ObligationsType value) {
this.obligations = value;
}
/**
* Sets the value of the policyCombiningAlgId property.
*
* @param value allowed object is {@link String }
*/
public void setPolicyCombiningAlgId(String value) {
this.policyCombiningAlgId = value;
}
/**
* Sets the value of the policySetDefaults property.
*
* @param value allowed object is {@link DefaultsType }
*/
public void setPolicySetDefaults(DefaultsType value) {
this.policySetDefaults = value;
}
/**
* Sets the value of the policySetId property.
*
* @param value allowed object is {@link String }
*/
public void setPolicySetId(String value) {
this.policySetId = value;
}
/**
* Sets the value of the target property.
*
* @param value allowed object is {@link TargetType }
*/
public void setTarget(TargetType value) {
this.target = value;
}
/**
* Sets the value of the version property.
*
* @param value allowed object is {@link String }
*/
public void setVersion(String value) {
this.version = value;
}
}