src/main/java/org/apache/bval/bench/metatree/MetaJavaBean.java
public void generateStaticInitCode() {
        for ( AbstractMetaField field : fields.values() ) {
            if ( field instanceof JavaBeanBasicField ) {
                JavaBeanBasicField jbbf = (JavaBeanBasicField) field;
                Object value;
                if (Config.CFG.shouldAssignValidValue()) {
                    value = Config.CFG.getRandom(jbbf.getValidValues());
                } else {
                    value = Config.CFG.getRandom(jbbf.getInvalidValues());
                }
                jbbf.generateAssignCode(value);
            }
        }
    }
/**
     * Generate code to initialize the basic fields.
     * <p>
     * NOTE: The fields could be initialized (or overriden) externally, giving
     * it more entropy as different instances of the bean could choose different
     * values for each field.
     */
Generate code to initialize the basic fields.

NOTE: The fields could be initialized (or overriden) externally, giving
it more entropy as different instances of the bean could choose different
values for each field.
Generate code to initialize the basic fields . NOTE : The fields could be initialized ( or overriden ) externally giving it more entropy as different instances of the bean could choose different values for each field .
public void generateStaticInitCode() {
        for ( AbstractMetaField field : fields.values() ) {
            if ( field instanceof JavaBeanBasicField ) {
                JavaBeanBasicField jbbf = (JavaBeanBasicField) field;
                Object value;
                if (Config.CFG.shouldAssignValidValue()) {
                    value = Config.CFG.getRandom(jbbf.getValidValues());
                } else {
                    value = Config.CFG.getRandom(jbbf.getInvalidValues());
                }
                jbbf.generateAssignCode(value);
            }
        }
    }
public void generateStaticInitCode ( ) { for ( AbstractMetaField field : fields . values ( ) ) { if ( field instanceof JavaBeanBasicField ) { JavaBeanBasicField jbbf = ( JavaBeanBasicField ) field ; Object value ; if ( Config . CFG . shouldAssignValidValue ( ) ) { value = Config . CFG . getRandom ( jbbf . getValidValues ( ) ) ; } else { value = Config . CFG . getRandom ( jbbf . getInvalidValues ( ) ) ; } jbbf . generateAssignCode ( value ) ; } } }
Generate code to initialize the basic fields.
Generate code to initialize the basic fields .