Examples of generateSource()


Examples of org.exolab.castor.builder.SourceGenerator.generateSource()

        // uncomment the next lines to set custom properties for source generation
//      Properties properties = new Properties();
//      properties.load(getClass().getResource("builder.properties").openStream());
//      generator.setDefaultProperties(properties);

        generator.generateSource(inputSource, getClass().getPackage().getName() + ".generated");
    }
   
}
View Full Code Here

Examples of org.exolab.castor.builder.SourceGenerator.generateSource()

        // uncomment the next lines to set custom properties for source generation
//      Properties properties = new Properties();
//      properties.load(getClass().getResource("builder.properties").openStream());
//      generator.setDefaultProperties(properties);

        generator.generateSource(inputSource, getClass().getPackage().getName() + ".generated");
    }
   
}
View Full Code Here

Examples of org.exolab.castor.builder.SourceGenerator.generateSource()

        // uncomment the next lines to set custom properties for source generation
//      Properties properties = new Properties();
//      properties.load(getClass().getResource("builder.properties").openStream());
//      generator.setDefaultProperties(properties);

        generator.generateSource(inputSource, getClass().getPackage().getName() + ".generated");
    }
   
}
View Full Code Here

Examples of org.exolab.castor.builder.SourceGenerator.generateSource()

                    assertNotNull("Unable to find the schema: ", schemaName);
                }

                InputSource source = new InputSource(new FileReader(schemaFile));
                source.setSystemId(schemaFile.getAbsolutePath());
                sourceGen.generateSource(source, _package);
            }
        } catch (Exception e) {
            if (!checkExceptionWasExpected(e, FailureStepType.SOURCE_GENERATION)) {
                fail("Source Generator threw an Exception: " + e.getMessage());
            }
View Full Code Here

Examples of org.exolab.castor.builder.SourceGenerator.generateSource()

        sgen.setSuppressNonFatalWarnings(_force);
        sgen.setDestDir(_destDir.toString());
        if (_force) { project.log("Suppressing non fatal warnings.", Project.MSG_VERBOSE); }

        try {
            sgen.generateSource(_schema.getAbsolutePath(), _pkgName);
        } catch (IOException ex) {
            project.log("Failed to compile " + _schema, Project.MSG_INFO);
            throw new BuildException(ex);
        }
    }
View Full Code Here

Examples of org.exolab.castor.builder.SourceGenerator.generateSource()

        sgen.setDestDir(destDir.toString());
        if (force)
            project.log("Suppressing non fatal warnings.",project.MSG_VERBOSE);
       
        try {
            sgen.generateSource(schema.getAbsolutePath(), pkgName);
        } catch(IOException ex) {
      project.log("Failed to compile " + schema,project.MSG_INFO);
            throw new BuildException(ex);
        }
    } //-- execute
View Full Code Here

Examples of toxi.audio.JOALUtil.generateSource()

        l.setGain(1);
        AudioBuffer b = audioUtil.loadBuffer("test/phone_ulaw.wav");
        int delay = b.getSampleSize() * 1000 / b.getFrequency();
        System.out.println(b + " length=" + delay);
        if (b.convertUlawToPCM(false)) {
            AudioSource src = audioUtil.generateSource();
            src.setBuffer(b);
            src.play();
        } else {
            System.out.println("couldn't convert buffer data");
        }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.