"sguilhen(a)redhat.com" wrote : One of the details I have to address has to do
with schema validation. Is there any way to express a <xsd:choice> using the
annotations? I'm asking because security policies should either have an authentication
or an <authentication-jaspi> element, but never both simultaneously. How do I
express this kind of restriction?
I see a bunch of xsd:choice usage here:
-
http://anonsvn.jboss.org/repos/jbossas/projects/microcontainer/trunk/kern...
but I don't think we do any special treatment / annotations in the code.
You can do this programmatically, as we do it in certain places:
-
http://anonsvn.jboss.org/repos/jbossas/projects/microcontainer/trunk/kern...
see initialVisit method.
You can put this just before you create your security bean metadata.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4149180#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...