1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
|
12 | |
|
13 | |
|
14 | |
|
15 | |
|
16 | |
package org.kuali.rice.core.impl.parameter; |
17 | |
|
18 | |
|
19 | |
import org.kuali.rice.core.api.parameter.ParameterEvaluator; |
20 | |
|
21 | |
|
22 | |
|
23 | |
|
24 | |
|
25 | |
public class AlwaysSucceedParameterEvaluatorImpl implements ParameterEvaluator { |
26 | 0 | private static final AlwaysSucceedParameterEvaluatorImpl instance = new AlwaysSucceedParameterEvaluatorImpl(); |
27 | |
|
28 | |
public static ParameterEvaluator getInstance() { |
29 | 0 | return instance; |
30 | |
} |
31 | |
|
32 | 0 | private AlwaysSucceedParameterEvaluatorImpl() { |
33 | 0 | } |
34 | |
|
35 | |
public boolean constraintIsAllow() { |
36 | 0 | return Boolean.TRUE; |
37 | |
} |
38 | |
|
39 | |
|
40 | |
public boolean evaluateAndAddError(Class businessObjectOrDocumentClass, String constrainedPropertyName, String userEditablePropertyName) { |
41 | 0 | return evaluationSucceeds(); |
42 | |
} |
43 | |
|
44 | |
public boolean evaluateAndAddError(Class businessObjectOrDocumentClass, String constrainedPropertyName) { |
45 | 0 | return evaluationSucceeds(); |
46 | |
} |
47 | |
|
48 | |
public boolean evaluationSucceeds() { |
49 | 0 | return Boolean.TRUE; |
50 | |
} |
51 | |
|
52 | |
public String getName() { |
53 | 0 | return AlwaysSucceedParameterEvaluatorImpl.class.getName(); |
54 | |
} |
55 | |
|
56 | |
public String getParameterValuesForMessage() { |
57 | 0 | return AlwaysSucceedParameterEvaluatorImpl.class.getName(); |
58 | |
} |
59 | |
|
60 | |
public String getValue() { |
61 | 0 | return AlwaysSucceedParameterEvaluatorImpl.class.getName(); |
62 | |
} |
63 | |
|
64 | |
public void setConstrainedValue(String constrainedValue) { |
65 | 0 | } |
66 | |
} |