templates.util.ConstGenerator.vm Maven / Gradle / Ivy
#* @vtlvariable name="ctx" type="org.kevoree.modeling.kotlin.generator.GenerationContext" *#
#* @vtlvariable name="FQNHelper" type="org.kevoree.modeling.kotlin.generator.ProcessorHelper" *#
#* @vtlvariable name="names" type="java.util.HashMap" *#
package ${FQNHelper.fqn($ctx, ${ctx.getBasePackageForUtilitiesGeneration()})}.util;
object Constants {
public val UNKNOWN_MUTATION_TYPE_EXCEPTION : String = "Unknown mutation type: "
public val READ_ONLY_EXCEPTION : String = "This model is ReadOnly. Elements are not modifiable."
public val LIST_PARAMETER_OF_SET_IS_NULL_EXCEPTION : String = "The list in parameter of the setter cannot be null. Use removeAll to empty a collection."
public val ELEMENT_HAS_NO_KEY_IN_COLLECTION : String = "Cannot set the collection, because at least one element of it has no key!"
public val EMPTY_KEY : String = "Key empty : please set the attribute key before adding the object."
public val KMFQL_CONTAINED : String = "contained"
#foreach($key in $names.keySet())
public val $key.replace(".","_") : String = "$names.get($key)"
#end
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy