1 | |
package org.kuali.student.common.dictionary.dto; |
2 | |
|
3 | |
import java.util.List; |
4 | |
|
5 | |
import javax.xml.bind.annotation.XmlAccessType; |
6 | |
import javax.xml.bind.annotation.XmlAccessorType; |
7 | |
import javax.xml.bind.annotation.XmlElement; |
8 | |
|
9 | |
import org.kuali.student.common.validation.dto.ValidationResultInfo.ErrorLevel; |
10 | |
|
11 | |
@XmlAccessorType(XmlAccessType.FIELD) |
12 | 0 | public class MustOccurConstraint { |
13 | |
@XmlElement |
14 | |
private List<RequiredConstraint> requiredFields; |
15 | |
@XmlElement |
16 | |
private List<MustOccurConstraint> occurs; |
17 | |
@XmlElement |
18 | |
private Integer min; |
19 | |
@XmlElement |
20 | |
private Integer max; |
21 | 0 | @XmlElement |
22 | |
private ErrorLevel errorLevel = ErrorLevel.ERROR; |
23 | |
|
24 | |
public List<RequiredConstraint> getRequiredFields() { |
25 | 0 | return requiredFields; |
26 | |
} |
27 | |
|
28 | |
public void setRequiredFields(List<RequiredConstraint> requiredFields) { |
29 | 0 | this.requiredFields = requiredFields; |
30 | 0 | } |
31 | |
|
32 | |
public List<MustOccurConstraint> getOccurs() { |
33 | 0 | return occurs; |
34 | |
} |
35 | |
|
36 | |
public void setOccurs(List<MustOccurConstraint> occurs) { |
37 | 0 | this.occurs = occurs; |
38 | 0 | } |
39 | |
|
40 | |
public Integer getMin() { |
41 | 0 | return min; |
42 | |
} |
43 | |
|
44 | |
public void setMin(Integer min) { |
45 | 0 | this.min = min; |
46 | 0 | } |
47 | |
|
48 | |
public Integer getMax() { |
49 | 0 | return max; |
50 | |
} |
51 | |
|
52 | |
public void setMax(Integer max) { |
53 | 0 | this.max = max; |
54 | 0 | } |
55 | |
|
56 | |
public ErrorLevel getErrorLevel() { |
57 | 0 | return errorLevel; |
58 | |
} |
59 | |
|
60 | |
public void setErrorLevel(ErrorLevel errorLevel) { |
61 | 0 | this.errorLevel = errorLevel; |
62 | 0 | } |
63 | |
} |