Add validation to the builder. This complets #4.
Authored by: hotzst 2009-10-22
Parent: [r2811]
Child: [r2813]