1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 package org.opensaml.xml.signature.impl;
18
19 import java.util.ArrayList;
20 import java.util.Collections;
21 import java.util.List;
22
23 import org.opensaml.xml.XMLObject;
24 import org.opensaml.xml.signature.Transform;
25 import org.opensaml.xml.signature.Transforms;
26 import org.opensaml.xml.util.XMLObjectChildrenList;
27 import org.opensaml.xml.validation.AbstractValidatingXMLObject;
28
29
30
31
32 public class TransformsImpl extends AbstractValidatingXMLObject implements Transforms {
33
34 private final XMLObjectChildrenList transforms;
35
36
37
38
39
40
41
42
43 protected TransformsImpl(String namespaceURI, String elementLocalName, String namespacePrefix) {
44 super(namespaceURI, elementLocalName, namespacePrefix);
45 transforms = new XMLObjectChildrenList<Transform>(this);
46 }
47
48
49 public List<Transform> getTransforms() {
50 return (List<Transform>) this.transforms;
51 }
52
53
54 public List<XMLObject> getOrderedChildren() {
55 ArrayList<XMLObject> children = new ArrayList<XMLObject>();
56
57 children.addAll((List<Transform>) transforms);
58
59 if (children.size() == 0) {
60 return null;
61 }
62
63 return Collections.unmodifiableList(children);
64 }
65
66 }