1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 package org.opensaml.ws.wsaddressing.impl;
18
19 import org.opensaml.ws.wsaddressing.AttributedUnsignedLong;
20 import org.opensaml.xml.XMLObject;
21 import org.opensaml.xml.io.MarshallingException;
22 import org.opensaml.xml.util.XMLHelper;
23 import org.w3c.dom.Element;
24
25
26
27
28 public class AttributedUnsignedLongMarshaller extends AbstractWSAddressingObjectMarshaller {
29
30
31 protected void marshallAttributes(XMLObject xmlObject, Element domElement) throws MarshallingException {
32 AttributedUnsignedLong aul = (AttributedUnsignedLong) xmlObject;
33 XMLHelper.marshallAttributeMap(aul.getUnknownAttributes(), domElement);
34 }
35
36
37 protected void marshallElementContent(XMLObject xmlObject, Element domElement) throws MarshallingException {
38 AttributedUnsignedLong aul = (AttributedUnsignedLong) xmlObject;
39 if (aul.getValue() != null) {
40 XMLHelper.appendTextContent(domElement, aul.getValue().toString());
41 }
42 }
43
44 }