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 javax.xml.namespace.QName;
26
27 import org.opensaml.xacml.ctx.StatusCodeType;
28 import org.opensaml.xacml.ctx.StatusDetailType;
29 import org.opensaml.xml.XMLObject;
30 import org.opensaml.xml.util.IndexedXMLObjectChildrenList;
31 import org.opensaml.xml.validation.AbstractValidatingXMLObject;
32
33
34 public class StatusDetailTypeImpl extends AbstractValidatingXMLObject implements StatusDetailType {
35
36
37 private IndexedXMLObjectChildrenList<XMLObject> unknownChildren;
38
39
40
41
42
43
44
45
46 protected StatusDetailTypeImpl(String namespaceURI, String elementLocalName, String namespacePrefix) {
47 super(namespaceURI, elementLocalName, namespacePrefix);
48 unknownChildren = new IndexedXMLObjectChildrenList<XMLObject>(this);
49 }
50
51
52 public List<XMLObject> getOrderedChildren() {
53 ArrayList<XMLObject> children = new ArrayList<XMLObject>();
54
55 children.addAll(unknownChildren);
56
57 return Collections.unmodifiableList(children);
58 }
59
60
61 public List<XMLObject> getUnknownXMLObjects() {
62 return unknownChildren;
63 }
64
65
66 public List<XMLObject> getUnknownXMLObjects(QName typeOrName) {
67 return (List<XMLObject>) unknownChildren.subList(typeOrName);
68 }
69 }