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