1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18 package org.opensaml.xacml.policy.impl;
19
20 import java.util.ArrayList;
21 import java.util.Collections;
22 import java.util.List;
23
24 import org.opensaml.xacml.policy.ApplyType;
25 import org.opensaml.xacml.policy.ExpressionType;
26 import org.opensaml.xml.XMLObject;
27 import org.opensaml.xml.util.XMLObjectChildrenList;
28 import org.opensaml.xml.validation.AbstractValidatingXMLObject;
29
30
31
32
33 public class ApplyTypeImpl extends AbstractValidatingXMLObject implements ApplyType {
34
35
36 private XMLObjectChildrenList<ExpressionType> expressions;
37
38
39 private String functionId;
40
41
42
43
44
45
46
47
48 protected ApplyTypeImpl(String namespaceURI, String elementLocalName, String namespacePrefix) {
49 super(namespaceURI, elementLocalName, namespacePrefix);
50 expressions = new XMLObjectChildrenList<ExpressionType>(this);
51 }
52
53
54 public List<ExpressionType> getExpressions() {
55 return expressions;
56 }
57
58
59 public String getFunctionId() {
60 return functionId;
61 }
62
63
64 public void setFunctionId(String id) {
65 this.functionId = prepareForAssignment(this.functionId,id);
66 }
67
68
69 public List<XMLObject> getOrderedChildren(){
70 ArrayList<XMLObject> children = new ArrayList<XMLObject>();
71
72 if(!expressions.isEmpty()){
73 children.addAll(expressions);
74 }
75
76 return Collections.unmodifiableList(children);
77 }
78 }
79
80