1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18 package org.opensaml.ws.wstrust.impl;
19
20 import java.util.List;
21
22 import org.opensaml.ws.wstrust.Renewing;
23 import org.opensaml.xml.XMLObject;
24 import org.opensaml.xml.schema.XSBooleanValue;
25
26
27
28
29
30 public class RenewingImpl extends AbstractWSTrustObject implements Renewing {
31
32
33 private XSBooleanValue allow;
34
35
36 private XSBooleanValue ok;
37
38
39
40
41
42
43
44
45 public RenewingImpl(String namespaceURI, String elementLocalName, String namespacePrefix) {
46 super(namespaceURI, elementLocalName, namespacePrefix);
47 }
48
49
50 public Boolean isAllow() {
51 if (allow != null) {
52 return allow.getValue();
53 }
54
55
56 return Boolean.TRUE;
57 }
58
59
60 public XSBooleanValue isAllowXSBoolean() {
61 return allow;
62 }
63
64
65 public void setAllow(Boolean newAllow) {
66 if (newAllow != null) {
67 allow = prepareForAssignment(allow, new XSBooleanValue(newAllow, false));
68 } else {
69 allow = prepareForAssignment(allow, null);
70 }
71 }
72
73
74 public void setAllow(XSBooleanValue newAllow) {
75 allow = prepareForAssignment(allow, newAllow);
76 }
77
78
79 public Boolean isOK() {
80 if (ok != null) {
81 return ok.getValue();
82 }
83
84
85 return Boolean.FALSE;
86 }
87
88
89 public XSBooleanValue isOKXSBoolean() {
90 return ok;
91 }
92
93
94 public void setOK(Boolean newOK) {
95 if (newOK != null) {
96 ok = prepareForAssignment(ok, new XSBooleanValue(newOK, false));
97 } else {
98 ok = prepareForAssignment(ok, null);
99 }
100 }
101
102
103 public void setOK(XSBooleanValue newOK) {
104 ok = prepareForAssignment(ok, newOK);
105 }
106
107
108 public List<XMLObject> getOrderedChildren() {
109 return null;
110 }
111
112 }