/** * @param toValidate * @param propertyValue * @param messages * @see * nl.knowlogy.validation.metadata.PropertyValidation#doValidatePropertyValue(java.lang.Object, * nl.knowlogy.validation.iMessages) */ public void doValidatePropertyValue(Object toValidate, Object propertyValue, iMessages messages) { String stringValue = (String) propertyValue; if ((stringValue != null) && (allowedValuesList != null) && (!allowedValuesList.contains(stringValue))) { messages.addPropertyMessage(MessageType.ERROR, toValidate, getPropertyName(), getErrorCode()); } }