Examples of generateCode()


Examples of org.jibx.binding.def.BindingDefinition.generateCode()

            // handle code generation from bindings
            int count = m_bindings.size();
            for (int i = 0; i < count; i++) {
                BindingDefinition binding =
                    (BindingDefinition)m_bindings.get(i);
                binding.generateCode(false, false);
            }
           
            // finish binding factories with information on classes used
            ClassFile[][] lists = MungedClass.fixDispositions();
            for (int i = 0; i < count; i++) {
View Full Code Here

Examples of org.openiaml.docs.generation.codegen.ModeldocCodeGenerator.generateCode()

        resource.getContents().add(root);
        resource.save(Collections.EMPTY_MAP);
     
    // generate code
    ModeldocCodeGenerator codegen = new ModeldocCodeGenerator();
    IStatus status = codegen.generateCode(modelFile);
    assertTrue("Status was not OK: " + status, status.isOK());
   
  }
 
  /**
 
View Full Code Here

Examples of org.openiaml.model.codegen.ICodeGenerator.generateCode()

      return Status.CANCEL_STATUS;
    }
 
    // create code generator instance
    ICodeGenerator codegen = new OawCodeGeneratorWithRuntime();
    IStatus status = codegen.generateCode(model, o.getProject(), new SubProgressMonitor(monitor, 50), runtimeProperties);

    if (monitor.isCanceled())
      return Status.CANCEL_STATUS;

    // finished
View Full Code Here

Examples of org.openiaml.model.codegen.ICodeGeneratorInMemory.generateCode()

    try {
      // create some properties
      Map<String,String> runtimeProperties = getRuntimeProperties();
     
      ICodeGeneratorInMemory runner = new OawCodeGeneratorWithRuntime();
      IStatus status = runner.generateCode(model, project.getProject(), monitor, runtimeProperties);
     
      if (!status.isOK()) {
        // bail early
        return status;
      }
View Full Code Here

Examples of org.openiaml.model.codegen.php.OawCodeGeneratorWithRuntime.generateCode()

    try {
      // create some properties
      Map<String,String> runtimeProperties = getRuntimeProperties();
     
      ICodeGeneratorInMemory runner = new OawCodeGeneratorWithRuntime();
      IStatus status = runner.generateCode(model, project.getProject(), monitor, runtimeProperties);
     
      if (!status.isOK()) {
        // bail early
        return status;
      }
View Full Code Here

Examples of org.openiaml.simplegmf.codegen.SimpleGMFCodeGenerator.generateCode()

    assertNotNull(model);
    assertTrue(model.getClass().getName(), model instanceof GMFConfiguration);
   
    // generate code
    SimpleGMFCodeGenerator codegen = new SimpleGMFCodeGenerator();
    IStatus status = codegen.generateCode(model, "./output");
   
    // check everything is OK
    assertTrue(status.toString(), status.isOK());
   
    // copy the local ecore file into output folder
View Full Code Here

Examples of org.openiaml.simplegmf.codegen.SimpleGMFCodeGenerator.generateCode()

    }
   
    // check that container is a folder
    monitor.subTask("Generating source code");
    SimpleGMFCodeGenerator gen = new SimpleGMFCodeGenerator();
    IStatus status = gen.generateCode(model, o.getParent().getLocation().toString());
    monitor.worked(60);
   
    // refresh parent
    monitor.subTask("Refreshing file system");
    o.getParent().refreshLocal(IResource.DEPTH_INFINITE, new SubProgressMonitor(monitor, 20));
View Full Code Here

Examples of org.openiaml.simplegmf.codegen.SimpleGMFCodeGenerator.generateCode()

    assertNotNull(model);
    assertTrue(model.getClass().getName(), model instanceof GMFConfiguration);

    // generate code
    SimpleGMFCodeGenerator codegen = new SimpleGMFCodeGenerator();
    IStatus status = codegen.generateCode(model, MODEL_ROOT);

    // check everything is OK
    assertTrue(status.toString(), status.isOK());
   
    // check that files are created;
View Full Code Here

Examples of org.openiaml.verification.nusmv.oaw.OAWGenerator.generateCode()

      }
      monitor.worked(1);
     
      // now generate it
      monitor.subTask("Generating SMV template using OAW");
      IStatus status = gen.generateCode(modelFile, getWorkflowFile());
      if (!status.isOK()) {
        throw new VerificationException("Generation was not successful: " + status.getMessage(), status.getException());
      }
      monitor.worked(2);
     
View Full Code Here

Examples of ptolemy.codegen.kernel.CodeGenerator.generateCode()

        // Append the output to stderr, stdout and the StringBuffer;
        final StringBufferExec executeCommands = new StringBufferExec(true);
        int returnCode = 0;
        try {
            codeGenerator.setExecuteCommands(executeCommands);
            returnCode = codeGenerator.generateCode();
        } catch (Exception e) {
            throw new IllegalActionException(actor, e,
                    "Failed to generate code.");
        }
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.