View Javadoc
1 package xdoclet.util.betwixt; 2 3 import org.apache.commons.betwixt.XMLIntrospector; 4 import org.apache.commons.betwixt.registry.XMLBeanInfoRegistry; 5 6 /*** 7 * Small utility class that configures Betwixt in a uniform way. 8 * 9 * @author <a href="mailto:aslak.hellesoy at bekk.no">Aslak Hellesøy</a> 10 * @version $Revision: 1.1 $ 11 */ 12 public class BetwixtConfigurer { 13 public static void configureIntrospector( XMLIntrospector introspector, XMLBeanInfoRegistry beanInfoRegistry ) { 14 introspector.setAttributesForPrimitives(true); 15 introspector.setWrapCollectionsInElement(false); 16 introspector.setPluralStemmer( new CollectionPluralStemmer() ); 17 if( beanInfoRegistry != null ) { 18 introspector.setRegistry( beanInfoRegistry ); 19 } 20 } 21 }

This page was automatically generated by Maven