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.saml2.core.impl.RequestAbstractTypeMarshaller;
22 import org.opensaml.xacml.profile.saml.XACMLAuthzDecisionQueryType;
23 import org.opensaml.xml.XMLObject;
24 import org.opensaml.xml.io.MarshallingException;
25 import org.w3c.dom.Element;
26
27
28
29
30 public class XACMLAuthzDecisionQueryTypeMarshaller extends RequestAbstractTypeMarshaller {
31
32
33 protected void marshallAttributes(XMLObject samlObject, Element domElement) throws MarshallingException {
34 XACMLAuthzDecisionQueryType query = (XACMLAuthzDecisionQueryType) samlObject;
35
36 if (query.getInputContextOnlyXSBooleanValue() != null) {
37 domElement.setAttributeNS(null, XACMLAuthzDecisionQueryType.INPUTCONTEXTONLY_ATTRIB_NAME, query
38 .getInputContextOnlyXSBooleanValue().toString());
39 }
40
41 if (query.getReturnContextXSBooleanValue() != null) {
42 domElement.setAttributeNS(null, XACMLAuthzDecisionQueryType.RETURNCONTEXT_ATTRIB_NAME, query
43 .getReturnContextXSBooleanValue().toString());
44 }
45
46 if (query.getCombinePoliciesXSBooleanValue() != null) {
47 domElement.setAttributeNS(null, XACMLAuthzDecisionQueryType.COMBINEPOLICIES_ATTRIB_NAME, query
48 .getCombinePoliciesXSBooleanValue().toString());
49 }
50
51 super.marshallAttributes(samlObject, domElement);
52 }
53 }