Examples of parseFile()


Examples of org.apache.torque.engine.database.transform.XmlToData.parseFile()

            List data;

            if (dataXmlFile != null)
            {
                XmlToData dataXmlParser = new XmlToData(db, dataDTD);
                data = dataXmlParser.parseFile(dataXmlFile);
            }
            else
            {
                data = new ArrayList();
View Full Code Here

Examples of org.apache.torque.engine.database.transform.XmlToData.parseFile()

                    // Make a transaction for each file
                    for (int j = 0; j < dataModelFiles.length; j++)
                    {
                        File f = new File(srcDir, dataModelFiles[j]);
                        XmlToData dataXmlParser = new XmlToData(db, dataDTD);
                        List newData = dataXmlParser.parseFile(f.toString());

                        for (Iterator it = newData.iterator(); it.hasNext();)
                        {
                            data.add(it.next());
                        }
View Full Code Here

Examples of org.apache.torque.engine.database.transform.XmlToData.parseFile()

                    // Make a transaction for each file
                    for (int j = 0; j < dataModelFiles.length; j++)
                    {
                        File f = new File(srcDir, dataModelFiles[j]);
                        XmlToData dataXmlParser = new XmlToData(db, dataDTD);
                        List newData = dataXmlParser.parseFile(f.toString());

                        for (Iterator it = newData.iterator(); it.hasNext();)
                        {
                            data.add(it.next());
                        }
View Full Code Here

Examples of org.apache.torque.engine.database.transform.XmlToData.parseFile()

            List data;
           
            if (dataXmlFile != null)
            {
                XmlToData dataXmlParser = new XmlToData(db, dataDTD);
                data = dataXmlParser.parseFile(dataXmlFile);
            }
            else
            {
                data = new ArrayList();
               
View Full Code Here

Examples of org.apache.turbine.services.intake.transform.XmlToAppData.parseFile()

                log.debug("Now parsing: " + xmlPath);
                try
                {
                    XmlToAppData xmlApp = new XmlToAppData();
                    appData = xmlApp.parseFile(xmlPath);
                }
                catch (Exception e)
                {
                    log.error("Could not parse XML file " + xmlPath, e);
View Full Code Here

Examples of org.apache.turbine.torque.engine.database.transform.XmlToAppData.parseFile()

        /*
         * Transform the XML database schema into an
         * object that represents our model.
         */
        XmlToAppData xmlParser = new XmlToAppData();
        app = xmlParser.parseFile(xmlFile);

        /*
         * Place our model in the context.
         */
        context.put("appData", app);
View Full Code Here

Examples of org.apache.turbine.torque.engine.database.transform.XmlToData.parseFile()

            db = app.getDatabases()[0];
        }
        try
        {
            XmlToData dataXmlParser = new XmlToData(db, dataDTD);
            List data = dataXmlParser.parseFile(dataXmlFile);
            context.put("data", data);
        }
        catch (Exception e)
        {
            System.err.println("Exception parsing data XML:");
View Full Code Here

Examples of org.auraframework.util.javascript.directive.DirectiveParser.parseFile()

        File file = getResourceFile("/testdata/javascript/testIfDirective_positive.js");
        DirectiveBasedJavascriptGroup jg = new DirectiveBasedJavascriptGroup("testDummy", file.getParentFile(),
                file.getName(), ImmutableList.<DirectiveType<?>> of(DirectiveTypes.ifType),
                EnumSet.of(JavascriptGeneratorMode.TESTING));
        DirectiveParser dp = new DirectiveParser(jg, jg.getStartFile());
        dp.parseFile();
        goldFileText(dp.generate(JavascriptGeneratorMode.TESTING), "_test.js");
        goldFileText(dp.generate(JavascriptGeneratorMode.PRODUCTION), "_prod.js");
    }
}
View Full Code Here

Examples of org.cipres.treebase.auxdata.AuxiliaryDataParser.parseFile()

      throw new RuntimeException("Usage: program [inputFilename]");
    }
   
    Filter repatriateStudyAuthors = new RepatriateStudyAuthors(me.getSession(), System.out);
    AuxiliaryDataParser parser = new AuxiliaryDataParser(repatriateStudyAuthors);
    RDParserResult result = parser.parseFile(f);
    parser.reportResults(System.err, result);
    System.exit(result.success() ? 0 : 1);
  }
 
}
View Full Code Here

Examples of org.cipres.treebase.framework.TSVFileParser.parseFile()

      returnVal.addErrorMessage("Null parameters passed in. Cannot create Row Segment.");
      return returnVal;
    }
   
    TSVFileParser parser = new TSVFileParser();
    List<List<String>> values = parser.parseFile(pFile, pSkipFirstRow, returnVal);
   
    //checks to make sure there are 19 tabs present in each list
    for (int x = 0; x < values.size(); x++) {
           
      if (values.get(x).size() < 19) {
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.