1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 package org.opensaml.samlext.saml2delrestrict.impl;
18
19 import java.util.ArrayList;
20 import java.util.Collections;
21 import java.util.List;
22
23 import org.opensaml.common.impl.AbstractSAMLObject;
24 import org.opensaml.samlext.saml2delrestrict.Delegate;
25 import org.opensaml.samlext.saml2delrestrict.DelegationRestrictionType;
26 import org.opensaml.xml.XMLObject;
27 import org.opensaml.xml.util.XMLObjectChildrenList;
28
29
30
31
32 public class DelegationRestrictionTypeImpl extends AbstractSAMLObject implements DelegationRestrictionType {
33
34
35 private XMLObjectChildrenList<Delegate> delegates;
36
37
38
39
40
41
42
43
44 protected DelegationRestrictionTypeImpl(String namespaceURI, String elementLocalName, String namespacePrefix) {
45 super(namespaceURI, elementLocalName, namespacePrefix);
46 delegates = new XMLObjectChildrenList<Delegate>(this);
47 }
48
49
50 public List<Delegate> getDelegates() {
51 return delegates;
52 }
53
54
55 public List<XMLObject> getOrderedChildren() {
56 ArrayList<XMLObject> children = new ArrayList<XMLObject>();
57 children.addAll(delegates);
58 return Collections.unmodifiableList(children);
59 }
60
61 }