1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19 package org.opensaml.xacml.profile.saml.impl;
20
21 import org.opensaml.common.impl.AbstractSAMLObjectUnmarshaller;
22 import org.opensaml.xacml.ctx.RequestType;
23 import org.opensaml.xacml.ctx.ResponseType;
24 import org.opensaml.xacml.profile.saml.XACMLAuthzDecisionStatementType;
25 import org.opensaml.xml.XMLObject;
26 import org.opensaml.xml.io.UnmarshallingException;
27
28
29
30
31 public class XACMLAuthzDecisionStatementTypeUnmarshaller extends AbstractSAMLObjectUnmarshaller {
32
33
34 protected void processChildElement(XMLObject parentObject, XMLObject childObject) throws UnmarshallingException {
35 XACMLAuthzDecisionStatementType xacmlauthzdecisionstatement = (XACMLAuthzDecisionStatementType) parentObject;
36
37 if (childObject instanceof RequestType) {
38 xacmlauthzdecisionstatement.setRequest((RequestType) childObject);
39 } else if (childObject instanceof ResponseType) {
40 xacmlauthzdecisionstatement.setResponse((ResponseType) childObject);
41 } else {
42 super.processChildElement(parentObject, childObject);
43 }
44 }
45
46 }