Examples of SchemaGen


Examples of org.apache.clerezza.rdf.schemagen.SchemaGen

      public String getClassName() {
        return packageName;
      }
    };

    SchemaGen schemaGen;
    try {
      schemaGen = new SchemaGen(arguments);
    } catch (IOException e) {
      getLog().error(e.getMessage(), e);
      return;
    } catch (URISyntaxException e) {
      getLog().error(e.getMessage(), e);
      return;
    }
    String rootPath = baseDir + File.separator + "target"
        + File.separator + "generated-sources" + File.separator
        + "main" + File.separator + "java" + File.separator;
    File dir = new File(rootPath + pathToJavaClass);
    dir.mkdirs();
    PrintWriter out = null;
    try {
      out = new PrintWriter(new File(rootPath + pathToJavaClass + className + ".java"), "utf-8");
    } catch (FileNotFoundException e) {
      getLog().error(e.getMessage(), e);
      return;
    } catch (UnsupportedEncodingException e) {
      getLog().error(e.getMessage(), e);
      throw new RuntimeException("utf-8 not supported!");
    }
    try {
      schemaGen.writeClass(out);
    } finally {
      out.flush();
    }
  }
View Full Code Here

Examples of org.jibx.schema.generator.SchemaGen

     */
    private Jibx2Wsdl(WsdlGeneratorCommandLine parms) {
        m_generationParameters = parms;
        GlobalCustom global = parms.getGlobal();
        m_bindingGenerator = new BindGen(global);
        m_schemaGenerator = new SchemaGen(parms.getLocator(), global, parms.getUriNames());
        m_uriSchemaMap = new HashMap();
    }
View Full Code Here

Examples of org.jibx.schema.generator.SchemaGen

            BindingHolder root = gen.finish(parms.getBindingName());
            List bindings = gen.validateFiles(parms.getGeneratePath(), parms.getLocator(), root);
            if (!parms.isBindingOnly()) {
               
                // generate schemas for all bindings
                SchemaGen sgen = new SchemaGen(parms.getLocator(), parms.getGlobal(), parms.getUriNames());
                List schemas = sgen.generate(bindings);
                SchemaGen.writeSchemas(parms.getGeneratePath(), schemas);
            }
           
        } else {
            if (args.length > 0) {
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.