1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 package org.opensaml.samlext.saml2mdquery.impl;
18
19 import org.opensaml.saml2.metadata.impl.RoleDescriptorMarshaller;
20 import org.opensaml.samlext.saml2mdquery.QueryDescriptorType;
21 import org.opensaml.xml.XMLObject;
22 import org.opensaml.xml.io.MarshallingException;
23 import org.w3c.dom.Element;
24
25
26
27
28 public abstract class QueryDescriptorTypeMarshaller extends RoleDescriptorMarshaller {
29
30
31 protected void marshallAttributes(XMLObject xmlObject, Element domElement) throws MarshallingException {
32 QueryDescriptorType descriptor = (QueryDescriptorType) xmlObject;
33
34 if (descriptor.getWantAssertionsSignedXSBoolean() != null) {
35 domElement.setAttributeNS(null, QueryDescriptorType.WANT_ASSERTIONS_SIGNED_ATTRIB_NAME, descriptor
36 .getWantAssertionsSignedXSBoolean().toString());
37 }
38
39 super.marshallAttributes(xmlObject, domElement);
40 }
41 }