/** * Get a <code>Map</code> of any <code>Object</code>s returned from * validation routines. * * @return Map of objections returned by validators. */ public Map<String, Object> getResultValueMap() { Map<String, Object> results = new HashMap<String, Object>(); for (Iterator<String> i = hResults.keySet().iterator(); i.hasNext();) { String propertyKey = i.next(); ValidatorResult vr = this.getValidatorResult(propertyKey); for (Iterator<String> x = vr.getActions(); x.hasNext();) { String actionKey = x.next(); Object result = vr.getResult(actionKey); if (result != null && !(result instanceof Boolean)) { results.put(propertyKey, result); } } } return results; }
/** * Get a <code>Map</code> of any <code>Object</code>s returned from * validation routines. * * @return Map of objections returned by validators. */ public Map getResultValueMap() { Map results = new HashMap(); for (Iterator i = hResults.keySet().iterator(); i.hasNext();) { String propertyKey = (String) i.next(); ValidatorResult vr = this.getValidatorResult(propertyKey); for (Iterator x = vr.getActions(); x.hasNext();) { String actionKey = (String)x.next(); Object result = vr.getResult(actionKey); if (result != null && !(result instanceof Boolean)) { results.put(propertyKey, result); } } } return results; }
/** * Get a <code>Map</code> of any <code>Object</code>s returned from * validation routines. * * @return Map of objections returned by validators. */ public Map<String, Object> getResultValueMap() { Map<String, Object> results = new HashMap<String, Object>(); for (Iterator<String> i = hResults.keySet().iterator(); i.hasNext();) { String propertyKey = i.next(); ValidatorResult vr = this.getValidatorResult(propertyKey); for (Iterator<String> x = vr.getActions(); x.hasNext();) { String actionKey = x.next(); Object result = vr.getResult(actionKey); if (result != null && !(result instanceof Boolean)) { results.put(propertyKey, result); } } } return results; }