Search in sources :

Example 1 with RamlToPojoTypeGenerator

use of org.raml.jaxrs.generator.builders.RamlToPojoTypeGenerator in project raml-for-jax-rs by mulesoft-labs.

the class SchemaTypeFactory method createRamlToPojo.

public static TypeGenerator createRamlToPojo(CurrentBuild currentBuild, final V10GType type) {
    TypeName typeName = currentBuild.fetchRamlToPojoBuilder().fetchType(type.name(), type.implementation());
    RamlToPojoTypeGenerator gen = new RamlToPojoTypeGenerator(currentBuild.fetchRamlToPojoBuilder(), type.name(), type.implementation(), typeName);
    currentBuild.newGenerator(type.name(), gen);
    type.setJavaType(typeName);
    return gen;
}
Also used : TypeName(com.squareup.javapoet.TypeName) RamlToPojoTypeGenerator(org.raml.jaxrs.generator.builders.RamlToPojoTypeGenerator)

Aggregations

TypeName (com.squareup.javapoet.TypeName)1 RamlToPojoTypeGenerator (org.raml.jaxrs.generator.builders.RamlToPojoTypeGenerator)1