1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19 package org.opensaml.xacml.profile.saml.impl;
20
21 import java.util.ArrayList;
22 import java.util.Collections;
23 import java.util.List;
24
25 import org.opensaml.common.impl.AbstractSAMLObject;
26 import org.opensaml.xacml.ctx.RequestType;
27 import org.opensaml.xacml.ctx.ResponseType;
28 import org.opensaml.xacml.profile.saml.XACMLAuthzDecisionStatementType;
29 import org.opensaml.xml.XMLObject;
30
31
32 public class XACMLAuthzDecisionStatementTypeImpl extends AbstractSAMLObject implements XACMLAuthzDecisionStatementType {
33
34
35 private RequestType request;
36
37
38 private ResponseType response;
39
40
41
42
43
44
45
46
47 protected XACMLAuthzDecisionStatementTypeImpl(String namespaceURI, String elementLocalName,
48 String namespacePrefix) {
49 super(namespaceURI, elementLocalName, namespacePrefix);
50 }
51
52
53 public RequestType getRequest() {
54 return request;
55 }
56
57
58 public ResponseType getResponse() {
59 return response;
60 }
61
62
63 public void setRequest(RequestType request) {
64 this.request = prepareForAssignment(this.request, request);
65 }
66
67
68 public void setResponse(ResponseType response) {
69 this.response = prepareForAssignment(this.response, response);
70 }
71
72
73 public List<XMLObject> getOrderedChildren() {
74 ArrayList<XMLObject> children = new ArrayList<XMLObject>();
75
76 if (request != null) {
77 children.add(request);
78 }
79 if (response != null) {
80 children.add(response);
81 }
82
83 return Collections.unmodifiableList(children);
84 }
85 }