Examples of generate()


Examples of com.gwtplatform.mvp.rebind.velocity.proxy.VelocityPlacetokenGenerator.generate()

        Injector injector = Guice.createInjector(new RebindModule(new Logger(treeLogger), generatorContext));
        VelocityPlacetokenGenerator.Factory factory = injector.getInstance(VelocityPlacetokenGenerator.Factory.class);
        VelocityPlacetokenGenerator generator = factory.create(placeTokens.keySet());

        try {
            return generator.generate();
        } catch (Exception e) {
            treeLogger.log(Type.ERROR, e.getMessage(), e);
            throw new UnableToCompleteException();
        }
    }
View Full Code Here

Examples of com.hazelcast.config.ConfigXmlGenerator.generate()

    @Override
    public void writeResponse(ManagementCenterService mcs, ObjectDataOutput dos) throws Exception {
        ConfigXmlGenerator configXmlGenerator = new ConfigXmlGenerator(true);
        Config config = mcs.getHazelcastInstance().getConfig();
        String clusterXml = configXmlGenerator.generate(config);
        dos.writeUTF(clusterXml);
    }

    @Override
    public void writeData(ObjectDataOutput out) throws IOException {
View Full Code Here

Examples of com.hp.hpl.jena.shared.uuid.UUIDFactory.generate()

          // val1, val2, END_PROPERTY_VALUES]
          // I add connection tuple Input and Output properties
          UUIDFactory factory = new UUID_V4_Gen();
          Resource subject = model
              .createResource(AdmireRegistryConstants.PlatformOntologyURI
                  + factory.generate().asUUID());

          i++;
          RDFNode objectST;
          Statement stmPropValue;
          String property = "";
View Full Code Here

Examples of com.hp.hpl.jena.shared.uuid.UUID_V4_Gen.generate()

          // val1, val2, END_PROPERTY_VALUES]
          // I add connection tuple Input and Output properties
          UUIDFactory factory = new UUID_V4_Gen();
          Resource subject = model
              .createResource(AdmireRegistryConstants.PlatformOntologyURI
                  + factory.generate().asUUID());

          i++;
          RDFNode objectST;
          Statement stmPropValue;
          String property = "";
View Full Code Here

Examples of com.jada.sitemap.SiteMap.generate()

        response.setHeader("Pragma", "no-cache");
        try {
          String domainName = request.getServerName();
          int port = request.getServerPort();
          SiteMap siteMap = new SiteMap(domainName, String.valueOf(port));
          String result = siteMap.generate();
         
          response.setContentType("text/xml; charset=UTF-8");
            response.setContentLength(result.getBytes(Constants.SYSTEM_ENCODING).length);
            OutputStream outputStream = response.getOutputStream();
            outputStream.write(result.getBytes(Constants.SYSTEM_ENCODING));
View Full Code Here

Examples of com.laamella.snelxml.generator.gathermappertemplate.MapperTemplateGenerator.generate()

                log.info("Processing: {}", xsd);
                final XSModel xsModel = schemaLoader.loadURI(new File(schemaDirectory, xsd).toURI().toString());
                Schema schema = xsdReader.readXsd(xsd, xsModel);
                final Model model = modelTransformer.transform(schema);
                readerGenerator.generate(model);
                gatherMapperGenerator.generate(model);
                immutableModelGenerator.generate(model);
                immutableModelMapperGenerator.generate(model);
                sampleXmlGenerator.writeSample(schema);
            }
        } catch (Exception e) {
View Full Code Here

Examples of com.laamella.snelxml.generator.immutablemodel.ImmutableModelGenerator.generate()

                final XSModel xsModel = schemaLoader.loadURI(new File(schemaDirectory, xsd).toURI().toString());
                Schema schema = xsdReader.readXsd(xsd, xsModel);
                final Model model = modelTransformer.transform(schema);
                readerGenerator.generate(model);
                gatherMapperGenerator.generate(model);
                immutableModelGenerator.generate(model);
                immutableModelMapperGenerator.generate(model);
                sampleXmlGenerator.writeSample(schema);
            }
        } catch (Exception e) {
            throw new MojoExecutionException("Failed to run generators", e);
View Full Code Here

Examples of com.laamella.snelxml.generator.immutablemodelmapper.ImmutableModelMapperGenerator.generate()

                Schema schema = xsdReader.readXsd(xsd, xsModel);
                final Model model = modelTransformer.transform(schema);
                readerGenerator.generate(model);
                gatherMapperGenerator.generate(model);
                immutableModelGenerator.generate(model);
                immutableModelMapperGenerator.generate(model);
                sampleXmlGenerator.writeSample(schema);
            }
        } catch (Exception e) {
            throw new MojoExecutionException("Failed to run generators", e);
        }
View Full Code Here

Examples of com.laamella.snelxml.generator.reader.ReaderGenerator.generate()

            for (String xsd : xsds) {
                log.info("Processing: {}", xsd);
                final XSModel xsModel = schemaLoader.loadURI(new File(schemaDirectory, xsd).toURI().toString());
                Schema schema = xsdReader.readXsd(xsd, xsModel);
                final Model model = modelTransformer.transform(schema);
                readerGenerator.generate(model);
                gatherMapperGenerator.generate(model);
                immutableModelGenerator.generate(model);
                immutableModelMapperGenerator.generate(model);
                sampleXmlGenerator.writeSample(schema);
            }
View Full Code Here

Examples of com.laamella.snelxml.generator.writer.WriterGenerator.generate()

public class WriterGeneratorTest {
  @Test
  public void test() throws Exception {
    WriterGenerator generator = new WriterGenerator("x.y.z.", new SystemOutputStreamFactory());
    generator.generate(ModelObjectMother.someModel());
  }
}
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.