use of com.spectralogic.ds3autogen.Ds3SpecParserImpl in project ds3_autogen by SpectraLogic.
the class TestGeneratedComponentResponseCode method generateCode.
@Override
public void generateCode(final FileUtils fileUtils, final String inputFileName) throws IOException, TemplateModelException {
final Ds3SpecParser parser = new Ds3SpecParserImpl();
final Ds3ApiSpec spec = parser.getSpec(TestGeneratedCode.class.getResourceAsStream(inputFileName));
final CodeGenerator codeGenerator = new JavaCodeGenerator();
codeGenerator.generate(spec, fileUtils, Paths.get("."), new Ds3DocSpecEmptyImpl());
requestGeneratedCode = new String(requestOutputStream.toByteArray());
responseGeneratedCode = new String(responseOutputStream.toByteArray());
responseParserGeneratedCode = new String(responseParserOutputStream.toByteArray());
encapsulatingTypeGeneratedCode = new String(encapsulatingTypeOutputStream.toByteArray());
ds3ClientGeneratedCode = new String(ds3ClientOutputStream.toByteArray());
ds3ClientImplGeneratedCode = new String(ds3ClientImplOutputStream.toByteArray());
}
use of com.spectralogic.ds3autogen.Ds3SpecParserImpl in project ds3_autogen by SpectraLogic.
the class TestGeneratedModelCode method generateCode.
public void generateCode(final FileUtils fileUtils, final String inputFileName) throws IOException, TemplateModelException {
final Ds3SpecParser parser = new Ds3SpecParserImpl();
final Ds3ApiSpec spec = parser.getSpec(TestGeneratedModelCode.class.getResourceAsStream(inputFileName));
final CodeGenerator codeGenerator = new JavaCodeGenerator();
codeGenerator.generate(spec, fileUtils, Paths.get("."), new Ds3DocSpecEmptyImpl());
modelGeneratedCode = new String(modelOutputStream.toByteArray());
}
use of com.spectralogic.ds3autogen.Ds3SpecParserImpl in project ds3_autogen by SpectraLogic.
the class TestGeneratedCode method generateCode.
public void generateCode(final FileUtils fileUtils, final String inputFileName, final Ds3DocSpec docSpec) throws IOException, TemplateModelException {
final Ds3SpecParser parser = new Ds3SpecParserImpl();
final Ds3ApiSpec spec = parser.getSpec(TestGeneratedCode.class.getResourceAsStream(inputFileName));
final CodeGenerator codeGenerator = new JavaCodeGenerator();
codeGenerator.generate(spec, fileUtils, Paths.get("."), docSpec);
requestGeneratedCode = new String(requestOutputStream.toByteArray());
responseGeneratedCode = new String(responseOutputStream.toByteArray());
responseParserGeneratedCode = new String(responseParserOutputStream.toByteArray());
ds3ClientGeneratedCode = new String(ds3ClientOutputStream.toByteArray());
ds3ClientImplGeneratedCode = new String(ds3ClientImplOutputStream.toByteArray());
}
Aggregations