1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21 package org.opensaml.saml2.core.impl;
22
23 import org.opensaml.common.impl.AbstractSAMLObjectUnmarshaller;
24 import org.opensaml.saml2.core.GetComplete;
25 import org.opensaml.saml2.core.IDPEntry;
26 import org.opensaml.saml2.core.IDPList;
27 import org.opensaml.xml.XMLObject;
28 import org.opensaml.xml.io.UnmarshallingException;
29
30
31
32
33 public class IDPListUnmarshaller extends AbstractSAMLObjectUnmarshaller {
34
35
36 protected void processChildElement(XMLObject parentSAMLObject, XMLObject childSAMLObject)
37 throws UnmarshallingException {
38 IDPList list = (IDPList) parentSAMLObject;
39
40 if (childSAMLObject instanceof IDPEntry) {
41 list.getIDPEntrys().add((IDPEntry) childSAMLObject);
42 } else if (childSAMLObject instanceof GetComplete) {
43 list.setGetComplete((GetComplete) childSAMLObject);
44 } else {
45 super.processChildElement(parentSAMLObject, childSAMLObject);
46 }
47 }
48 }