Package org.apache.ws.jaxme.generator.impl

Examples of org.apache.ws.jaxme.generator.impl.GeneratorImpl.addBindings()


      generator.setSettingReadOnly(isReadOnly());
      generator.setValidating(isValidating());
      for (int i = 0;  i < bindingFiles.length;  i++) {
        try {
          String systemId = bindingFiles[i].toURL().toExternalForm();
          generator.addBindings(new InputSource(systemId));
        } catch (Exception e) {
          throw new BuildException("Failed to read external binding file "
              + bindingFiles[i] + ": " + e.getMessage(), e,
              getLocation());
        }
View Full Code Here


      generator.setSettingReadOnly(isReadOnly());
      generator.setValidating(isValidating());
      for (int i = 0;  i < bindingFiles.length;  i++) {
        try {
          String systemId = bindingFiles[i].toURL().toExternalForm();
          generator.addBindings(new InputSource(systemId));
        } catch (Exception e) {
          throw new BuildException("Failed to read external binding file "
              + bindingFiles[i] + ": " + e.getMessage(), e,
              getLocation());
        }
View Full Code Here

          opt = args[++i];
          }
          File f = new File(opt);
          if (f.isFile()) {
            try {
              g.addBindings(new InputSource(f.toURL().toExternalForm()));
            } catch (Exception e) {
              System.err.println("The external binding file "
                  + f.getAbsolutePath() + " could not be read: "
                  + e.getMessage());
              e.printStackTrace();
View Full Code Here

   */
  public void testBindingGenerator() throws Exception {
    Generator g = new GeneratorImpl();
    g.setTargetDirectory(new File("build/tests/binding/src"));
    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"));
  }
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.