Package com.laamella.snelxml.generator.reader

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


public class ReaderGeneratorTest {
  @Test
  public void test() throws Exception {
    ReaderGenerator generator = new ReaderGenerator("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.