codegen.beanclass.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)
## This is an the velocity template
## to generate a Java class
import java.util.*;
public class $class.Name {
#foreach( $att in $class.Attributes)
/** bean attribute $att.Name */
private $att.Type $att.Name;
/**
* read access method for $att.Name
*/
public $att.Type get$att.NameFU () {
return this.$att.Name;
}
/**
* write access method for $att.Name
*/
public void set$att.NameFU ($att.Type $att.Name) {
this.$att.Name = $att.Name;
}
#end
}