📄 leaseform.java
字号:
/*
* Generated by MyEclipse Struts
* Template path: templates/java/JavaClass.vtl
*/
package chenxin.form;
import javax.servlet.http.HttpServletRequest;
import org.apache.struts.action.ActionErrors;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionMapping;
import org.apache.struts.action.ActionMessage;
/**
* MyEclipse Struts
* Creation date: 07-14-2008
*
* XDoclet definition:
* @struts.form name="leaseForm"
*/
public class LeaseForm extends ActionForm {
/*
* Generated fields
*/
/** returnDate property */
private String returnDate;
/** leaseDate property */
private String leaseDate;
/** customer property */
private String customer;
/** autoId property */
private String autoId;
/** returned property */
private String returned;
/*
* Generated Methods
*/
/**
* Method validate
* @param mapping
* @param request
* @return ActionErrors
*/
public ActionErrors validate(ActionMapping mapping,
HttpServletRequest request) {
// TODO Auto-generated method stub
ActionErrors errors = new ActionErrors();
if (customer== null || customer.length() == 0) {
errors.add("customer_error",new ActionMessage("customer_error"));
}
if (autoId== null || autoId.length() == 0) {
errors.add("customer_error",new ActionMessage("customer_error"));
}
return errors;
}
/**
* Method reset
* @param mapping
* @param request
*/
public void reset(ActionMapping mapping, HttpServletRequest request) {
// TODO Auto-generated method stub
}
/**
* Returns the returnDate.
* @return String
*/
public String getReturnDate() {
return returnDate;
}
/**
* Set the returnDate.
* @param returnDate The returnDate to set
*/
public void setReturnDate(String returnDate) {
this.returnDate = returnDate;
}
/**
* Returns the leaseDate.
* @return String
*/
public String getLeaseDate() {
return leaseDate;
}
/**
* Set the leaseDate.
* @param leaseDate The leaseDate to set
*/
public void setLeaseDate(String leaseDate) {
this.leaseDate = leaseDate;
}
/**
* Returns the customer.
* @return String
*/
public String getCustomer() {
return customer;
}
/**
* Set the customer.
* @param customer The customer to set
*/
public void setCustomer(String customer) {
this.customer = customer;
}
/**
* Returns the autoId.
* @return String
*/
public String getAutoId() {
return autoId;
}
/**
* Set the autoId.
* @param autoId The autoId to set
*/
public void setAutoId(String autoId) {
this.autoId = autoId;
}
/**
* Returns the returned.
* @return String
*/
public String getReturned() {
return returned;
}
/**
* Set the returned.
* @param returned The returned to set
*/
public void setReturned(String returned) {
this.returned = returned;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -