io.vrap.codegen.languages.extensions.EObjectExtensions.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of codegen-renderers Show documentation
Show all versions of codegen-renderers 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.extensions
import io.vrap.rmf.codegen.types.VrapNilType
import org.eclipse.emf.ecore.EObject
interface EObjectExtensions : ExtensionsBase {
fun EObject?.toVrapType() = if(this !=null ) vrapTypeProvider.doSwitch(this) else VrapNilType()
}