1 | |
package org.kuali.rice.krad.datadictionary.validation.constraint; |
2 | |
|
3 | |
import javax.xml.bind.annotation.XmlAccessType; |
4 | |
import javax.xml.bind.annotation.XmlAccessorType; |
5 | |
import java.util.ArrayList; |
6 | |
import java.util.List; |
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
|
12 | |
|
13 | |
|
14 | |
|
15 | |
|
16 | |
|
17 | |
|
18 | |
|
19 | |
@XmlAccessorType(XmlAccessType.FIELD) |
20 | 5 | public class WhenConstraint implements Constraint { |
21 | |
protected List<Object> values; |
22 | |
protected String valuePath; |
23 | |
protected Constraint constraint; |
24 | |
|
25 | |
public List<Object> getValues() { |
26 | 2 | return values; |
27 | |
} |
28 | |
|
29 | |
public void setValues(List<Object> values) { |
30 | 0 | this.values = values; |
31 | 0 | } |
32 | |
|
33 | |
public void setValue(Object value) { |
34 | 5 | values = new ArrayList<Object>(); |
35 | 5 | values.add(value); |
36 | 5 | } |
37 | |
|
38 | |
public String getValuePath() { |
39 | 1 | return valuePath; |
40 | |
} |
41 | |
|
42 | |
public void setValuePath(String valuePath) { |
43 | 0 | this.valuePath = valuePath; |
44 | 0 | } |
45 | |
|
46 | |
public Constraint getConstraint() { |
47 | 2 | return constraint; |
48 | |
} |
49 | |
|
50 | |
public void setConstraint(Constraint constraint) { |
51 | 5 | this.constraint = constraint; |
52 | 5 | } |
53 | |
} |