1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 package org.opensaml.ws.wstrust.impl;
18
19
20 import org.opensaml.ws.wstrust.Renewing;
21 import org.opensaml.xml.XMLObject;
22 import org.opensaml.xml.io.MarshallingException;
23 import org.w3c.dom.Element;
24
25
26
27
28
29 public class RenewingMarshaller extends AbstractWSTrustObjectMarshaller {
30
31
32 protected void marshallAttributes(XMLObject xmlObject, Element domElement) throws MarshallingException {
33 Renewing renewing = (Renewing) xmlObject;
34
35 if (renewing.isAllowXSBoolean() != null) {
36 domElement.setAttributeNS(null, Renewing.ALLOW_ATTRIB_NAME, renewing.isAllowXSBoolean().toString());
37 }
38
39 if (renewing.isOKXSBoolean() != null) {
40 domElement.setAttributeNS(null, Renewing.OK_ATTRIB_NAME, renewing.isOKXSBoolean().toString());
41 }
42 }
43
44 }