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