1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18 package org.opensaml.ws.wssecurity.impl;
19
20 import org.opensaml.ws.wssecurity.TransformationParameters;
21 import org.opensaml.xml.XMLObject;
22 import org.opensaml.xml.io.UnmarshallingException;
23 import org.opensaml.xml.util.XMLHelper;
24 import org.w3c.dom.Attr;
25
26
27
28
29
30 public class TransformationParametersUnmarshaller extends AbstractWSSecurityObjectUnmarshaller {
31
32
33 protected void processAttribute(XMLObject xmlObject, Attr attribute) throws UnmarshallingException {
34 TransformationParameters tp = (TransformationParameters) xmlObject;
35 XMLHelper.unmarshallToAttributeMap(tp.getUnknownAttributes(), attribute);
36 }
37
38
39 protected void processChildElement(XMLObject parentXMLObject, XMLObject childXMLObject)
40 throws UnmarshallingException {
41 TransformationParameters tp = (TransformationParameters) parentXMLObject;
42 tp.getUnknownXMLObjects().add(childXMLObject);
43 }
44
45 }