![JAR search and dependency download from the Maven repository](/logo.png)
codegen.beanconstant.vm Maven / Gradle / Ivy
/*
* File: $HeadURL$
* Id : $Id$
*
* created by: velocity template (${template})
* created on: ----/--/-- (not filled with property 'time' to simplify version-diffs)
*
* ${copyright}
*/
package ${package};
#define($attKey) KEY_${util.toUpperCase(${att.Name})}#end
#define($attKeyTooltip) KEY_TOOLTIP_${util.toUpperCase(${att.Name})}#end
#define($attName) ATTR_${util.toUpperCase(${att.Name})}#end
/*
* Resource bundle preparation: copy this block to your resource bundle!
*
* BLOCKSTART
#foreach( $att in $class.Attributes)
${util.toFirstLowerCase(${class.Name})}.${att.Name}=${att.NameFU}
${util.toFirstLowerCase(${class.Name})}.${att.Name}.tooltip=${att.NameFU} tooltip...
#end
* BLOCKEND */
/**
* Attribute and message label key definition for Bean class.
*
* Generated do not modify!!!
*
* @author Generated through velocity template (beanconstant.vm)
* @version $Revision$
*/
public interface ${class.Name}${postfix} {
#foreach( $att in $class.Attributes)
/** key name of $att.Name in resource bundle */
public static final String ${attKey} = "${util.toFirstLowerCase(${class.Name})}.${att.Name}";
public static final String ${attKeyTooltip} = "${util.toFirstLowerCase(${class.Name})}.${att.Name}.tooltip";
#end
#foreach( $att in $class.Attributes)
/** bean attribute $att.Name */
public static final String ${attName} = "${att.Name}";
#end
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy