io.vrap.codegen.languages.javalang.model.JavaModelModule.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of java-renderer Show documentation
Show all versions of java-renderer Show documentation
RAML API client code generators based on the REST Modeling Framework. https://github.com/vrapio/rest-modeling-framework
package io.vrap.codegen.languages.javalang.model
import io.vrap.rmf.codegen.di.RamlGeneratorModule
import io.vrap.rmf.codegen.di.Module
import io.vrap.rmf.codegen.rendering.*
object JavaModelModule: Module {
override fun configure(generatorModule: RamlGeneratorModule) = setOf(
ObjectTypeGenerator(
setOf(
JavaObjectTypeRenderer(generatorModule.vrapTypeProvider())
),
generatorModule.allObjectTypes()
),
StringTypeGenerator(
setOf(
JavaStringTypeRenderer(generatorModule.vrapTypeProvider())
),
generatorModule.allEnumStringTypes()
)
)
}