1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19 package org.opensaml.xacml.ctx.impl;
20
21 import java.util.ArrayList;
22 import java.util.Collections;
23 import java.util.List;
24
25 import org.opensaml.xacml.ctx.ResourceType;
26 import org.opensaml.xacml.ctx.ResponseType;
27 import org.opensaml.xacml.ctx.ResultType;
28 import org.opensaml.xml.XMLObject;
29 import org.opensaml.xml.validation.AbstractValidatingXMLObject;
30
31
32 public class ResponseTypeImpl extends AbstractValidatingXMLObject implements ResponseType {
33
34
35 private ResultType result;
36
37
38
39
40
41
42
43
44 protected ResponseTypeImpl(String namespaceURI, String elementLocalName, String namespacePrefix) {
45 super(namespaceURI, elementLocalName, namespacePrefix);
46 }
47
48
49 public List<XMLObject> getOrderedChildren() {
50 ArrayList<XMLObject> children = new ArrayList<XMLObject>();
51
52 if (result != null) {
53 children.add(result);
54 }
55
56 return Collections.unmodifiableList(children);
57 }
58
59
60 public ResultType getResult() {
61 return result;
62 }
63
64
65 public void setResult(ResultType result) {
66 this.result = prepareForAssignment(this.result, result);
67 }
68 }