public class ParameterEvaluatorImpl extends Object implements ParameterEvaluator
| Constructor and Description |
|---|
ParameterEvaluatorImpl() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
constraintIsAllow()
This method determines whether the parameter lists allowed values or denied values.
|
boolean |
evaluateAndAddError(Class<? extends Object> businessObjectOrDocumentClass,
String constrainedPropertyName)
This method uses the evaluateAndAddError method.
|
boolean |
evaluateAndAddError(Class<? extends Object> businessObjectOrDocumentClass,
String constrainedPropertyName,
String userEditablePropertyName)
This method uses the evaluationSucceeds method to evaluate the
constrainedValue.
|
boolean |
evaluationSucceeds()
If the constraint is allow and the constrainedValue is in the list of
allowed values specified by the parameter this will return true, and if
the constraint is deny and the constrainedValue is not in the list of
denied values specified by the parameter this method will return true.
|
protected DataDictionaryService |
getDataDictionaryService() |
String |
getModuleAndComponent() |
String |
getParameterValuesForMessage()
This method uses the List toString method and eliminates the [].
|
String |
getValue()
This method returns the value of the correspnding Parameter.
|
void |
setConstrainedValue(String constrainedValue) |
void |
setConstraintIsAllow(boolean constraintIsAllow) |
void |
setParameter(Parameter parameter) |
void |
setValues(List<String> values) |
String |
toString() |
public ParameterEvaluatorImpl()
public boolean evaluationSucceeds()
evaluationSucceeds in interface ParameterEvaluatorpublic boolean evaluateAndAddError(Class<? extends Object> businessObjectOrDocumentClass, String constrainedPropertyName)
ParameterEvaluatorevaluateAndAddError in interface ParameterEvaluatorpublic boolean evaluateAndAddError(Class<? extends Object> businessObjectOrDocumentClass, String constrainedPropertyName, String userEditablePropertyName)
evaluateAndAddError in interface ParameterEvaluatorbusinessObjectOrDocumentClass - public boolean constraintIsAllow()
ParameterEvaluatorconstraintIsAllow in interface ParameterEvaluatorpublic String getParameterValuesForMessage()
getParameterValuesForMessage in interface ParameterEvaluatorpublic String getValue()
ParameterEvaluatorgetValue in interface ParameterEvaluatorpublic String getModuleAndComponent()
public void setConstrainedValue(String constrainedValue)
public void setConstraintIsAllow(boolean constraintIsAllow)
public void setParameter(Parameter parameter)
protected DataDictionaryService getDataDictionaryService()
Copyright © 2005–2016 The Kuali Foundation. All rights reserved.