Re: findMatchingRMClass
Rong Chen schreef: > On Tue, Jul 22, 2008 at 11:42 PM, Bert Verhees <bert.verhees@rosa.nl > <mailto:bert.verhees@rosa.nl>> wrote: > > Hi Rong, > > It took me some time before I discovered what this method is for, > it is used > in dadl-binding. > > It doesn't work reliable for me, often retunring the wrong RMtype, > when > stepping hrough the code, I can always explain why. > > Isn't it a shortcoming of the dadl-specs, to allow data without > rm-type > specification? > > I ask this, because, the findMatchingRMClass-method, does not work > very > reliable (for me), and also, if this method is used in large > amounts of data- > processing, this method with its loops in it must be a pain in > CPU-use and > time used. > > What is your opinion about this? > > > Hi Bert, > > This method is necessary for dADL binding without type information. > For some RM classes, there are more than one match of a given > mandatory attribute, e.g. "value". The list of attributes is made > available by the constructor annotations. You can look at the > testcases for supported look-ups. Sometimes you need to put type > information in the dADL text to make the binding explicit. Thanks Rong, that also was my understanding, but the whole concept is, in my opinion unreliable, if you want it to work for the compleet scala of archetypable classes in the RM-kernel Bert _______________________________________________ Ref_impl_java mailing list Ref_impl_java@openehr.org http://lists.chime.ucl.ac.uk/mailman/listinfo/ref_impl_java