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.UnmarshallingException;
22 import org.opensaml.xml.util.XMLHelper;
23 import org.w3c.dom.Attr;
24
25
26
27
28 public class AttributedUnsignedLongUnmarshaller extends AbstractWSAddressingObjectUnmarshaller {
29
30
31 protected void processAttribute(XMLObject xmlObject, Attr attribute) throws UnmarshallingException {
32 AttributedUnsignedLong aul = (AttributedUnsignedLong) xmlObject;
33 XMLHelper.unmarshallToAttributeMap(aul.getUnknownAttributes(), attribute);
34 }
35
36
37 protected void processElementContent(XMLObject xmlObject, String elementContent) {
38 AttributedUnsignedLong aul = (AttributedUnsignedLong) xmlObject;
39 if (elementContent != null) {
40 aul.setValue(Long.valueOf(elementContent.trim()));
41 }
42 }
43
44 }