EVALUATION
It seemed warranted that the behavior of individual field setters, such as setHour, should be consistent with those that affects multiple fields, such as setTime.
However, I would agree with the original design that validates values of each fields in their own context. For a single field setter, the value needs to be validated against the constraints of that field. For methods that affect multiple fields, the constraints would be an aggregation of all fields. The specification clearly defined time(24,0,0) following XML Schema errata e2-45 (http://www.w3.org/2001/05/xmlschema-errata#e2-45), and therefore required the setTime method to report (24,0,1) as a violation.
*** (#1 of 1): [ UNSAVED ] ###@###.###
|