1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 package org.opensaml.xml.encryption.impl;
18
19 import org.opensaml.xml.XMLObject;
20 import org.opensaml.xml.encryption.Transforms;
21 import org.opensaml.xml.io.UnmarshallingException;
22 import org.opensaml.xml.signature.Transform;
23
24
25
26
27 public class TransformsUnmarshaller extends AbstractXMLEncryptionUnmarshaller {
28
29
30 protected void processChildElement(XMLObject parentXMLObject, XMLObject childXMLObject)
31 throws UnmarshallingException {
32 Transforms transforms = (Transforms) parentXMLObject;
33
34 if (childXMLObject instanceof Transform) {
35 transforms.getTransforms().add((Transform) childXMLObject);
36 } else {
37 super.processChildElement(parentXMLObject, childXMLObject);
38 }
39 }
40
41 }