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