Examples of generate()


Examples of Framework.UUIDGen.generate()

          // We are in the middle of a transaction, and we're about to cross a process boundary
          TransactionData data = stack.get(0);
          if (data.distributedTransactionID == null) {
            // This is the first time the transaction has cross a process boundary, allocate an id
            UUIDGen gen = new UUIDGen();
            gen.generate();
            data.distributedTransactionID = gen.asCharPtr();
          }
          // Add this key to the list of invokers if not already there
          data.currentInvoker = remoteMechanism;
          if (data.distributedInvokers != null) {
View Full Code Here

Examples of ariba.ui.meta.persistence.QueryGenerator.generate()

        public List executeQuery (ObjectContext context, QuerySpecification spec)
        {

            QueryGenerator generator = new QueryGenerator(spec, context.typeProvider(spec.getEntityName()));
            String queryString = generator.generate();
            Map queryParams = generator.queryParams();

            JPAContext jpa = (JPAContext)context;
            return jpa.executeQuery(jpa._entityManager.createQuery(queryString), queryParams);
        }
View Full Code Here

Examples of at.bestsolution.efxclipse.formats.svg.converter.FXMLConverter.generate()

public class SVGStreamConverter {
  public void converter(InputStream inputStream, OutputStream outputStream) throws Exception {
    XMLLoader loader = new XMLLoader();
    SvgSvgElement rootElement = loader.loadDocument(null, inputStream);
    FXMLConverter converter = new FXMLConverter(rootElement);
    outputStream.write(converter.generate().toString().getBytes());
  }
}
View Full Code Here

Examples of at.bestsolution.efxclipse.tooling.pde.ui.templates.JemmyLaunch.generate()

    super.execute(project, model, monitor);
   
    IFile f = project.getFile(new Path(project.getName() + ".launch"));
    JemmyLaunch l = new JemmyLaunch();
    try {
      ByteArrayInputStream in = new ByteArrayInputStream(l.generate(createDef(project)).toString().getBytes());
      f.create(in, IFile.FORCE, monitor);
      in.close();
    } catch (IOException e) {
      // TODO Auto-generated catch block
      e.printStackTrace();
View Full Code Here

Examples of be.ac.ulg.montefiore.run.distributions.GaussianDistribution.generate()

    for (int g = 0, i = 0; g < 2; g++) {
      RandomDistribution d = new GaussianDistribution(g * 4.,
          1 + g);
     
      for (; i < ((g == 0) ? nbObservations / 3 : nbObservations); i++)
        observations[i] = new ObservationReal(d.generate());
    }
   
    // Fit distribution to observations
    OpdfGaussianMixture gm = new OpdfGaussianMixture(2);
   
View Full Code Here

Examples of be.ac.ulg.montefiore.run.distributions.RandomDistribution.generate()

    for (int g = 0, i = 0; g < 2; g++) {
      RandomDistribution d = new GaussianDistribution(g * 4.,
          1 + g);
     
      for (; i < ((g == 0) ? nbObservations / 3 : nbObservations); i++)
        observations[i] = new ObservationReal(d.generate());
    }
   
    // Fit distribution to observations
    OpdfGaussianMixture gm = new OpdfGaussianMixture(2);
   
View Full Code Here

Examples of biz.freshcode.b_generation.DefaultBeanBuilderGenerator.generate()

* Generates the source of a BeanBuilder.
*/
public class BgenDemoGenerator {
    public static void main(String[] args) {
        DefaultBeanBuilderGenerator gen = new DefaultBeanBuilderGenerator();
        System.out.println(gen.generate(BgenDemo.class)); //<<<<<<<<<<<<<<<<<< The bean class here
    }
}
View Full Code Here

Examples of br.com.caelum.tubaina.parser.html.HtmlGenerator.generate()

      HtmlParser htmlParser = new HtmlParser(conf.read("/regex.properties", "/html.properties"), noAnswer);
      HtmlGenerator generator = new HtmlGenerator(htmlParser, strictXhtml, templateDir);
      File file = new File(outputDir, "html");
      FileUtils.forceMkdir(file);
      try {
        generator.generate(b, file);
      } catch (TubainaException e) {
        LOG.warn(e.getMessage());
      }
    }
View Full Code Here

Examples of br.com.caelum.tubaina.parser.html.desktop.Generator.generate()

      FileUtils.copyFileToDirectory(bibliographyFile, file);
    }

    Generator generator = parseType.getGenerator(parseType.getParser(), data);
    try {
      generator.generate(b, file);
    } catch (TubainaException e) {
      LOG.warn(e.getMessage());
    }
  }
View Full Code Here

Examples of br.com.caelum.tubaina.parser.latex.LatexGenerator.generate()

      Parser parser = new LatexParser(tags, showNotes, noAnswer);
      LatexGenerator generator = new LatexGenerator(parser, templateDir, noAnswer);
      File file = new File(outputDir, "latex");
      FileUtils.forceMkdir(file);
      try {
        generator.generate(b, file, outputFileName);
      } catch (TubainaException e) {
        LOG.warn(e.getMessage());
      }
    }
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.