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;
}
Aggregations