1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 package edu.internet2.middleware.shibboleth.wayf.idpdisco;
18
19 import java.util.ArrayList;
20 import java.util.List;
21
22 import org.opensaml.common.impl.AbstractSAMLObject;
23 import org.opensaml.xml.XMLObject;
24 import org.opensaml.xml.util.XMLObjectChildrenList;
25
26
27
28
29
30
31 public class DiscoHintsImpl extends AbstractSAMLObject implements DiscoHints {
32
33
34 private final XMLObjectChildrenList<DomainHint> domainHints;
35
36
37 private final XMLObjectChildrenList<IPHint> iPHints;
38
39
40 private final XMLObjectChildrenList<GeolocationHint> geoHints;
41
42
43
44
45
46
47
48
49 protected DiscoHintsImpl(String namespaceURI, String elementLocalName, String namespacePrefix) {
50 super(namespaceURI, elementLocalName, namespacePrefix);
51 domainHints = new XMLObjectChildrenList<DomainHint>(this);
52 iPHints = new XMLObjectChildrenList<IPHint>(this);
53 geoHints = new XMLObjectChildrenList<GeolocationHint>(this);
54 }
55
56
57 public List<DomainHint> getDomainHints() {
58 return domainHints;
59 }
60
61
62 public List<GeolocationHint> getGeolocationHints() {
63 return geoHints;
64 }
65
66
67 public List<IPHint> getIPHints() {
68 return iPHints;
69 }
70
71
72 public List<XMLObject> getOrderedChildren() {
73 ArrayList<XMLObject> children = new ArrayList<XMLObject>();
74
75 children.addAll(domainHints);
76 children.addAll(iPHints);
77 children.addAll(geoHints);
78 return children;
79 }
80 }