codegen.beanconstant.vm Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of tsl2.nano.h5 Show documentation
Show all versions of tsl2.nano.h5 Show documentation
TSL2 Framework Html5 Extensions (WebServer, Html5Presentation, RuleCover, BeanConfigurator, LogicTable-Sheet, Expression-Descriptors for Actions, Rules, URLs, Queries)
/*
* 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
}