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 org.opensaml.common.impl.AbstractSAMLObjectUnmarshaller;
20 import org.opensaml.samlext.saml2delrestrict.Delegate;
21 import org.opensaml.samlext.saml2delrestrict.DelegationRestrictionType;
22 import org.opensaml.xml.XMLObject;
23 import org.opensaml.xml.io.UnmarshallingException;
24
25
26
27
28 public class DelegationRestrictionTypeUnmarshaller extends AbstractSAMLObjectUnmarshaller {
29
30
31 protected void processChildElement(XMLObject parentSAMLObject, XMLObject childSAMLObject)
32 throws UnmarshallingException {
33 DelegationRestrictionType drt = (DelegationRestrictionType) parentSAMLObject;
34
35 if (childSAMLObject instanceof Delegate) {
36 drt.getDelegates().add((Delegate) childSAMLObject);
37 } else {
38 super.processChildElement(parentSAMLObject, childSAMLObject);
39 }
40 }
41
42 }