RE: question on schemas
"Goldsack, Patrick" <[email protected]>
| Newsgroups | gmane.comp.java.smartfrog.user |
|---|---|
| Message-ID | <[email protected]> |
Actually the "and" is implicit - in that two attributes in a schema implies that both must be there, and including two schemas implies that both schemas must be satisfied. The reason for limiting it to that is (a somewhat weak attempt) to ensure the monotonicity of extends. Patrick -----Original Message----- From: smartfrog-support-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org [mailto:smartfrog-support-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org] On Behalf Of Steve Loughran Sent: 25 July 2005 16:09 Cc: smartfrog-support-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org Subject: Re: [Smartfrog-support] question on schemas Andreas Unterkircher wrote: > Hello, > > is it possible to OR schemas in SmartFrog ? E.g. I have component > which either has to have attribute > > a1 String > a2 String > > OR > > b1 Vector > > "OR" means that it should be also possible to have a1,a2,b1 present > but not a1,b1 or a2,b1 or none of the above. > > Thanks, > Andreas I see what you are trying to do, and the answer is no. every type is independent; there is no and/or/xor logic in there. that kind of complexity has to be handled in the component itself. -steve ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Smartfrog-support mailing list Smartfrog-support-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org https://lists.sourceforge.net/lists/listinfo/smartfrog-support ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click