vm.ant.web.form.vm Maven / Gradle / Ivy
package $!packageName;
import javax.servlet.http.HttpServletRequest;
import org.apache.struts.action.ActionMapping;
import com.dev.web.form.BaseForm ;
#set($startsWord = $!tablePdmXml.className.substring(0,1).toLowerCase())
#set($otherWords = $!tablePdmXml.className.substring(1))
/**
* Title:
*
* Description:
*
* Copyright: Copyright (c) $!nowYear
*
* Company:
*
* @author $!userName
* @version 1.0
*
* Generated by XDoclet/actionform. This class can be further processed with XDoclet/webdoclet/strutsconfigxml and XDoclet/webdoclet/strutsvalidationxml.
*
* @struts.form name="$startsWord${otherWords}Form"
*/
public class $!className extends BaseForm implements java.io.Serializable {
private static final long serialVersionUID = 1L;
#foreach($columnPdmXml in $tablePdmXml.columnPdmXmlList)
protected String $!columnPdmXml.code;
#end
/** Default empty constructor. */
public $!className() {}
#foreach($columnPdmXml in $tablePdmXml.columnPdmXmlList)
#set($startsWord = $!columnPdmXml.code.substring(0,1).toUpperCase())
#set($otherWords = $!columnPdmXml.code.substring(1))
public String get$startsWord$otherWords() {
return $!columnPdmXml.code;
}
public void set$startsWord$otherWords(String $!columnPdmXml.code) {
this.$!columnPdmXml.code = $!columnPdmXml.code;
}
#end
/**
* @see org.apache.struts.action.ActionForm#reset(org.apache.struts.action.ActionMapping,
* javax.servlet.http.HttpServletRequest)
*/
public void reset(ActionMapping mapping, HttpServletRequest request) {
#foreach($columnPdmXml in $tablePdmXml.columnPdmXmlList)
this.$!columnPdmXml.code = null;
#end
}
}