Examples of generate()


Examples of com.sun.jdo.spi.persistence.support.ejb.ejbc.JDOCodeGenerator.generate()

                        // The classloader needs to be set else we fail down the road.
                        ClassLoader ocl = entd.getClassLoader();
                        entd.setClassLoader(jcl);
                   
                        try {
                            gen.generate(entd, stubsDir, stubsDir);
                        } catch (GeneratorException e) {
                            String msg = e.getMessage();
                            _logger.warning(msg);
                            generatorExceptionMsg = addGeneratorExceptionMessage(
                                    msg, generatorExceptionMsg);
View Full Code Here

Examples of com.sun.jersey.server.wadl.WadlBuilder.generate()

        /* Generate WADL for that class */
        WadlGenerator wg = new WadlGeneratorResourceDocSupport(new WadlGeneratorImpl(), rdt);

        WadlBuilder wb = new WadlBuilder(wg);
        AbstractResource resource = IntrospectionModeller.createResource(TestResource.class);
        ApplicationDescription app = wb.generate(null, Collections.singleton(resource));


        /* Confirm that it can be marshalled without error */
        StringWriter sw = new StringWriter();

View Full Code Here

Examples of com.sun.source.util.JavacTask.generate()

    static void check(String destPath, ClassName clazz, ClassName sup) throws Exception {
        File destDir = new File(workDir, destPath); destDir.mkdir();
        final JavaCompiler tool = ToolProvider.getSystemJavaCompiler();
        JavacTask ct = (JavacTask)tool.getTask(null, null, null,
                Arrays.asList("-d", destPath), null, Arrays.asList(initialSources));
        ct.generate();
        File fileToRemove = new File(destPath, clazz.name + ".class");
        fileToRemove.delete();
        JavaSource newSource = new JavaSource(clazz, sup);
        DiagnosticChecker checker = new DiagnosticChecker();
        ct = (JavacTask)tool.getTask(null, null, checker,
View Full Code Here

Examples of com.sun.syndication.io.ModuleGenerator.generate()

        for (int i = 0; i < modules.size(); i++) {
            Module module = (Module) modules.get(i);
            String namespaceUri = module.getUri();
            ModuleGenerator generator = (ModuleGenerator)generators.get(namespaceUri);
            if (generator != null) {
                generator.generate(module, element);
            }
        }
    }

    public Set getAllNamespaces() {
View Full Code Here

Examples of com.sun.tahiti.compiler.generator.ModelGenerator.generate()

            getJavaFile( od, item.getTypeName() ) );
        }
      };
    }
   
    generator.generate( grammar, symbolizer, controller );

 
    System.err.println("done.");
    return 0;
  }
View Full Code Here

Examples of com.sun.tools.corba.se.idl.SymtabEntry.generate()

      // Don't generate contained entries if they are sequences.
      // Sequences are unnamed and since they translate to arrays,
      // no classes are generated for them, not even holders in this
      // case since they cannot be accessed outside of this union.
      if (!(entry instanceof SequenceEntry))
        entry.generate (symbolTable, stream);
    }
  } // generateContainedTypes

  private void writeVerifyDefault()
  {
View Full Code Here

Examples of com.sun.tools.internal.xjc.generator.bean.field.FieldRenderer.generate()

        FieldRenderer fr = prop.realization;
        if(fr==null)
            // none is specified. use the default factory
            fr = model.options.getFieldRendererFactory().getDefault();

        FieldOutline field = fr.generate(cc, prop);
        fields.put(prop,field);

        return field;
    }
View Full Code Here

Examples of com.sun.tools.xjc.generator.bean.field.FieldRenderer.generate()

        FieldRenderer fr = prop.realization;
        if(fr==null)
            // none is specified. use the default factory
            fr = model.options.getFieldRendererFactory().getDefault();

        FieldOutline field = fr.generate(cc, prop);
        fields.put(prop,field);      
  
        return field;
    }
View Full Code Here

Examples of com.sun.xml.ws.spi.db.ServiceArtifactSchemaGenerator.generate()

        }
        SDOSchemaCompiler compiler = createSDOCompiler();
        model = compiler.bind();

        ServiceArtifactSchemaGenerator xsdgen = new ServiceArtifactSchemaGenerator(bindingInfo.getSEIModel());
        xsdgen.generate(outputResolver);
    }
   
    public SDOSchemaCompiler createSDOCompiler() {
        SDOSchemaCompiler compiler = new SDOSchemaCompiler();
        for (Source s : schemas) {
View Full Code Here

Examples of com.tinkerpop.furnace.alpha.generators.DistributionGenerator.generate()

        // Generate edges
        for (int i = 0; i < schema.getEdgeLabels(); i++) {
            DistributionGenerator gen = new DistributionGenerator(schema.getEdgeLabelName(i), edgeAnnotator);
            gen.setOutDistribution(new PowerLawDistribution(GAMMA));
            gen.setInDistribution(new PowerLawDistribution(GAMMA));
            gen.generate(g, schema.getEdgeCount());
        }

        g.commit();

        TitanTransaction tx = g.newTransaction();
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.