templates.ModelCloner.vm Maven / Gradle / Ivy
#* @vtlvariable name="packageName" type="java.lang.String" *#
#* @vtlvariable name="potentialRoots" type="java.util.ArrayList" *#
#* @vtlvariable name="ctx" type="org.kevoree.modeling.kotlin.generator.GenerationContext" *#
#* @vtlvariable name="packages" type="java.util.Collection" *#
#* @vtlvariable name="helper" type="org.kevoree.modeling.kotlin.generator.ProcessorHelperClass" *#
package ${packageName}.cloner
class DefaultModelCloner() : org.kevoree.modeling.api.ModelCloner {
override fun createContext(): MutableMap {
#if($ctx.getJS())
return java.util.HashMap()
#else
return java.util.IdentityHashMap()
#end
}
override var mainFactory : org.kevoree.modeling.api.KMFFactory = ${helper.fqn($ctx, $ctx.getBasePackageForUtilitiesGeneration())}.factory.MainFactory()
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy