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.ExpressionType;
25 import org.opensaml.xacml.policy.VariableDefinitionType;
26 import org.opensaml.xml.XMLObject;
27 import org.opensaml.xml.validation.AbstractValidatingXMLObject;
28
29
30
31
32 public class VariableDefinitionTypeImpl extends AbstractValidatingXMLObject implements VariableDefinitionType {
33
34
35 private ExpressionType expression;
36
37
38 private String variableId;
39
40
41
42
43
44
45
46
47 protected VariableDefinitionTypeImpl(String namespaceURI, String elementLocalName, String namespacePrefix){
48 super(namespaceURI,elementLocalName,namespacePrefix);
49 }
50
51
52 public ExpressionType getExpression() {
53 return expression;
54 }
55
56
57 public String getVariableId() {
58 return variableId;
59 }
60
61
62 public void setVariableId(String id) {
63 this.variableId = prepareForAssignment(this.variableId,id);
64
65 }
66
67
68 public List<XMLObject> getOrderedChildren() {
69 ArrayList<XMLObject> children = new ArrayList<XMLObject>();
70
71 if(expression != null){
72 children.add(expression);
73 }
74 return Collections.unmodifiableList(children);
75 }
76 }