Package org.apache.ws.jaxme.generator

Examples of org.apache.ws.jaxme.generator.Generator.generate()


    gen.setTargetDirectory(new File(pTempDir, "src"));
    gen.setValidating(pValidating);
    gen.setSchemaReader(new JAXBSchemaReader());
    gen.setEntityResolver(new StoringEntityResolver(new File(pTempDir, "schema")));
    try {
      gen.generate(pURL);
    } catch (Exception e) {
      throw new ServletException(e);
    }
   
    pResponse.setContentType("application/zip");
View Full Code Here


    g.setResourceTargetDirectory(new File("build/tests/binding/src"));
    g.addBindings(new InputSource(new File("src/test/jaxb/bindings/bindings.jxb").toURI().toURL().toExternalForm()));
    SchemaReader sr = new JAXBSchemaReader();
    sr.setGenerator(g);
    g.setSchemaReader(sr);
    g.generate(new File("src/test/jaxb/bindings/bindings.xsd"));
  }

  /**
   * Tests, whether the binding has moved the schema to the proper
   * package and whether the string constants have been created.
View Full Code Here

    gen.setTargetDirectory(new File(pTempDir, "src"));
    gen.setValidating(pValidating);
    gen.setSchemaReader(new JAXBSchemaReader());
    gen.setEntityResolver(new StoringEntityResolver(new File(pTempDir, "schema")));
    try {
      gen.generate(pURL);
    } catch (Exception e) {
      throw new ServletException(e);
    }
   
    pResponse.setContentType("application/zip");
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.