/**
* ��֤һ���ֶΡ�
*/
@Override
protected boolean validate(Context context, String value) {
Field fieldToCompare = assertNotNull(context.getField(fieldName), "field not found");
String thisValue = value;
String otherValue = fieldToCompare.getStringValue();
if (ignoreCase) {
thisValue = StringUtil.toLowerCase(thisValue);
otherValue = StringUtil.toLowerCase(otherValue);
}