How do I tell my plugin that it can have attribute1 or 2, but not both? IOW
I want the config framework to do the validation for me.

How about:


@PluginAttribute(choice="group1") int foo,
@PluginAttribute(choice="group1") int bar

Same thing for elements.

Thoughts?

Gary

-- 
E-Mail: garydgreg...@gmail.com | ggreg...@apache.org
Java Persistence with Hibernate, Second Edition
<http://www.manning.com/bauer3/>
JUnit in Action, Second Edition <http://www.manning.com/tahchiev/>
Spring Batch in Action <http://www.manning.com/templier/>
Blog: http://garygregory.wordpress.com
Home: http://garygregory.com/
Tweet! http://twitter.com/GaryGregory

Reply via email to