>> I just wanted to implore the JAXB team to not take this concept too far.
I'd like to see the JAXB team allow for the concept of business rules contributing to the constraints of a valid document. Just
sticking to the XML Schema specification, whatever it may contain in the future, cannot ever cover off situations that may be
encountered in business applications.
I can't comment on what confusion may occur if a business rule causes a document to be invalid versus a violation of the XML schema
specification. Yes, you could not see the violation of validity in the schema. That wouldn't make the document any less valid to the
business application. Perhaps a "BusinessRuleValidationException", subclass of "ValidationException" would suffice.
I believe there must be method to allow business rules to be easily hooked in JAXB generated classes in order to provide document
validation. To not do so lessens the value proposition of JAXB to applications whose validation criteria goes beyond the XML Schema
specification. I can't say for sure but I'm guessing that's a fair number of applications.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_jaxb.dev.java.net
For additional commands, e-mail: users-help_at_jaxb.dev.java.net