Ok, I'll try to ask this as brief and clear as possible: How do you represent a constraint defined on an information model entity in an archetype, in the java ref. implementation? (in an ITS friendly way)
Ocean's archetype editor has a nice hierarchy of Constraint classes, which are constructed as vb.net code walks over the adl object representation returned from eiffel parser wrapping dll. Unless I'm missing something, the java ref implementation has classes in org.openehr.am.archetype.constraintmodel package which are meant to provide the same functionality in Ocean's archetype designer. However the CDomainType<T> rooted hieararchy is not as rich as the one in designer code. Is this hiearcarchy waiting to be extended to the same level with Ocean's implementation, or is it capable of representing a larger number of constraints than I can see? (on a second look, I guess the answer is an unsure yes, but the question still remains) And a final note that'll set free some very happy worms out of their can: I feel like I will be attaching constraints to a tree of information model elements which will be used to constrain data input from UI, and some can call this data validation. I know this sounds like functionality defined within the Template specs, but I'm tempted to take the shortcut and see what it will bring. Your comments woulde be appreciated a lot. Kind regards Seref -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.openehr.org/mailman/private/openehr-technical_lists.openehr.org/attachments/20081106/eb54ca2f/attachment.html>

