> Been a few months since I touched VT now but isn't there a way of appending the result onto an existing one?
> So in your case it would be something like:-
> MasterResult = ValidateThis.newResult();
> for object in array { > ValidateThis.Validate(objectType=object,result=MasterResult); > }
> I might have the attribute names wrong there.
> Cheers, > James
> -- > You received this message because you are subscribed to the Google Groups "ValidateThis" group. > To view this discussion on the web visit https://groups.google.com/d/msg/validatethis/-/RVGpcwckwOwJ. > To post to this group, send email to validatethis@googlegroups.com. > To unsubscribe from this group, send email to validatethis+unsubscribe@googlegroups.com. > For more options, visit this group at http://groups.google.com/group/validatethis?hl=en.
> To post to this group, send email to validatethis@googlegroups.com. > To unsubscribe from this group, send email to > validatethis+unsubscribe@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/validatethis?hl=en.
That is a good point, James. It is probably how I would address it.
Regarding your question, Rob, yes that seems like an oversight. It would make sense that addResult would consider the success status of each Result object.
Do you want to add that and send me a pull request?
On Mon, Feb 6, 2012 at 8:52 AM, James Buckingham <clarke...@gmail.com> wrote: > Been a few months since I touched VT now but isn't there a way of appending > the result onto an existing one?
> So in your case it would be something like:-
> MasterResult = ValidateThis.newResult();
> for object in array { > ValidateThis.Validate(objectType=object,result=MasterResult); > }
> To post to this group, send email to validatethis@googlegroups.com. > To unsubscribe from this group, send email to > validatethis+unsubscribe@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/validatethis?hl=en.
> On 6 February 2012 14:38, James Buckingham <clarke...@gmail.com> wrote: >> Yeah didn't quite answer your point but thought I'd offer the alternative.
>> To post to this group, send email to validatethis@googlegroups.com. >> To unsubscribe from this group, send email to >> validatethis+unsubscribe@googlegroups.com. >> For more options, visit this group at >> http://groups.google.com/group/validatethis?hl=en.
> -- > You received this message because you are subscribed to the Google Groups "ValidateThis" group. > To post to this group, send email to validatethis@googlegroups.com. > To unsubscribe from this group, send email to validatethis+unsubscribe@googlegroups.com. > For more options, visit this group at http://groups.google.com/group/validatethis?hl=en.
>> Using addResult, does hasErrors() return false?
>> On 6 February 2012 14:38, James Buckingham <clarke...@gmail.com> wrote: >>> Yeah didn't quite answer your point but thought I'd offer the alternative.
>>> To post to this group, send email to validatethis@googlegroups.com. >>> To unsubscribe from this group, send email to >>> validatethis+unsubscribe@googlegroups.com. >>> For more options, visit this group at >>> http://groups.google.com/group/validatethis?hl=en.
>> -- >> You received this message because you are subscribed to the Google Groups "ValidateThis" group. >> To post to this group, send email to validatethis@googlegroups.com. >> To unsubscribe from this group, send email to validatethis+unsubscribe@googlegroups.com. >> For more options, visit this group at http://groups.google.com/group/validatethis?hl=en.
> -- > You received this message because you are subscribed to the Google Groups "ValidateThis" group. > To post to this group, send email to validatethis@googlegroups.com. > To unsubscribe from this group, send email to validatethis+unsubscribe@googlegroups.com. > For more options, visit this group at http://groups.google.com/group/validatethis?hl=en.