xml - How to XSD-Validating single fields on setting them using moxy -
in this fine post learned how validate xml using moxy. problem validation comes @ last , there many failures due invalid parameters given setter methods. there way validate each setter (model based). if set 1 value value validated against constraints. @ time of each set call - complete model may invalidate hell want validation info current set call. in case want throw illegalargumentexception if passes illegal (by xsd constraint) parameter 1 of setters (all setters wrapped interface).
Comments
Post a Comment