Re: Bug in adl-parser
Hi Rong,I got it and sorry for the inconvenience. This is the matter null (optional) and empty (required but 0 in size).
Bests, Soheil On Aug 29, 2009, at 10:48 PM, Rong Chen wrote:
Hi Soheil, Actually the parser is correct as is. Cardinality {0..*} doesn't mean existence is optional. Cardinality and existence describe two different constraints here. A container attribute can be required (existence matches {1}) and has from 0 to many members. Cheers, Rong 2009/8/28 Soheil Hassas Yeganeh <soheil.h.y@gmail.com>:Hi There,There is a bug in adl-parser project about the existence of archetypes nodes. If a node exists with cardinality {0..*}, it is implicit that thenode is OPTIONAL, but the parser consider it as REQUIRED. Forexample relationships is not necessary as defined in the following line butthe ADLParser mark it as required. relationships cardinality matches {0..*; ordered} matches { The problem can be solved simply. Please find the patch attached. Bests, Soheil _______________________________________________ Ref_impl_java mailing list Ref_impl_java@openehr.org http://lists.chime.ucl.ac.uk/mailman/listinfo/ref_impl_java_______________________________________________ Ref_impl_java mailing list Ref_impl_java@openehr.org http://lists.chime.ucl.ac.uk/mailman/listinfo/ref_impl_java