return qualifier.evaluateWithObject(o);
}
}
protected boolean validateObjectValueDictWithInfo(ValidationObjectValue values, NSDictionary info, String cacheKey) {
EOQualifierEvaluation q = (EOQualifierEvaluation)_validationQualiferCache.objectForKey(cacheKey);
if(q == null) {
try {
String className = (String)info.objectForKey("className");
if(className == null) {
className = QualiferValidation.class.getName();
}
Class cl = ERXPatcher.classForName(className);
Constructor co = cl.getConstructor(new Class [] {Object.class});
Object o = co.newInstance(new Object[] {info});
q = (EOQualifierEvaluation)o;
} catch(Exception ex) {
throw new NSForwardException(ex);
}
_validationQualiferCache.setObjectForKey(q, cacheKey);
}
if(values.value() == null && "true".equals(info.objectForKey("ignoreIfNull")))
return true;
if(q != null)
return q.evaluateWithObject(values);
return true;
}