1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.kuali.rice.krad.datadictionary.validation.constraint;
17
18 import javax.xml.bind.annotation.XmlAccessType;
19 import javax.xml.bind.annotation.XmlAccessorType;
20 import javax.xml.bind.annotation.XmlElement;
21
22
23
24
25
26
27
28 @XmlAccessorType(XmlAccessType.FIELD)
29 public class SimpleConstraint extends BaseConstraint implements ExistenceConstraint{
30
31 @XmlElement
32 private Boolean required;
33
34 @XmlElement
35 private Integer maxLength;
36
37 @XmlElement
38 private Integer minLength;
39
40 @XmlElement
41 protected String exclusiveMin;
42
43 @XmlElement
44 protected String inclusiveMax;
45
46
47 @XmlElement
48 private Integer minOccurs;
49
50 @XmlElement
51 private Integer maxOccurs;
52
53
54
55
56
57 public Boolean getRequired() {
58 return this.required;
59 }
60
61
62
63
64 public void setRequired(Boolean required) {
65 this.required = required;
66 }
67
68
69
70
71
72 public Integer getMaxLength() {
73 return this.maxLength;
74 }
75
76
77
78
79 public void setMaxLength(Integer maxLength) {
80 this.maxLength = maxLength;
81 }
82
83
84
85
86
87 public Integer getMinLength() {
88 return this.minLength;
89 }
90
91
92
93
94 public void setMinLength(Integer minLength) {
95 this.minLength = minLength;
96 }
97
98
99
100
101
102 public String getExclusiveMin() {
103 return this.exclusiveMin;
104 }
105
106
107
108
109 public void setExclusiveMin(String exclusiveMin) {
110 this.exclusiveMin = exclusiveMin;
111 }
112
113
114
115
116
117 public String getInclusiveMax() {
118 return this.inclusiveMax;
119 }
120
121
122
123
124 public void setInclusiveMax(String inclusiveMax) {
125 this.inclusiveMax = inclusiveMax;
126 }
127
128
129
130
131
132 public Integer getMinOccurs() {
133 return this.minOccurs;
134 }
135
136
137
138
139 public void setMinOccurs(Integer minOccurs) {
140 this.minOccurs = minOccurs;
141 }
142
143
144
145
146
147 public Integer getMaxOccurs() {
148 return this.maxOccurs;
149 }
150
151
152
153
154 public void setMaxOccurs(Integer maxOccurs) {
155 this.maxOccurs = maxOccurs;
156 }
157
158
159
160
161
162 @Override
163 public Boolean isRequired() {
164 return getRequired();
165 }
166
167 }
168