From: Goldsack, Patrick <patrick.goldsack@hp...> - 2005-07-25 15:21:02
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.
[mailto:smartfrog-support-admin@...] On Behalf Of
Sent: 25 July 2005 16:09
Subject: Re: [Smartfrog-support] question on schemas
Andreas Unterkircher wrote:
> is it possible to OR schemas in SmartFrog ? E.g. I have component=20
> which either has to have attribute
> a1 String
> a2 String
> b1 Vector
> "OR" means that it should be also possible to have a1,a2,b1 present=20
> but not a1,b1 or a2,b1 or none of the above.
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.
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. =
Smartfrog-support mailing list
Get latest updates about Open Source Projects, Conferences and News.