⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 strutsvalidatorform.java

📁 这是一个关于J2EE的开源包common里的许多组件的示例应用程序,可以借鉴.
💻 JAVA
字号:
package validator;

import org.apache.struts.validator.ValidatorForm;

/**
 * Title : Base Dict Class
 * Description : here Description is the function of class, here maybe multirows    
 * @author        kevin
 * @Version       1.0 
 */

/**
 * Class description goes here.
 * @version 1.0  2005-12-1 
 * @author kevin
 */
public class StrutsValidatorForm extends ValidatorForm
{
	private String name;
	private String shortName;
	private String address;
	private String city;
	private String zipCode;
	private String phone;
	private int age;
	private String description;
	
	
	/**
	 * @return Returns the address.
	 */
	public String getAddress()
	{
		return address;
	}
	/**
	 * @param address The address to set.
	 */
	public void setAddress(String address)
	{
		this.address = address;
	}
	
	/**
	 * @return Returns the age.
	 */
	public int getAge()
	{
		return age;
	}
	/**
	 * @param age The age to set.
	 */
	public void setAge(int age)
	{
		this.age = age;
	}
	/**
	 * @return Returns the city.
	 */
	public String getCity()
	{
		return city;
	}
	/**
	 * @param city The city to set.
	 */
	public void setCity(String city)
	{
		this.city = city;
	}
	/**
	 * @return Returns the description.
	 */
	public String getDescription()
	{
		return description;
	}
	/**
	 * @param description The description to set.
	 */
	public void setDescription(String description)
	{
		this.description = description;
	}
	/**
	 * @return Returns the name.
	 */
	public String getName()
	{
		return name;
	}
	/**
	 * @param name The name to set.
	 */
	public void setName(String name)
	{
		this.name = name;
	}
	/**
	 * @return Returns the phone.
	 */
	public String getPhone()
	{
		return phone;
	}
	/**
	 * @param phone The phone to set.
	 */
	public void setPhone(String phone)
	{
		this.phone = phone;
	}
	/**
	 * @return Returns the shortName.
	 */
	public String getShortName()
	{
		return shortName;
	}
	/**
	 * @param shortName The shortName to set.
	 */
	public void setShortName(String shortName)
	{
		this.shortName = shortName;
	}
	/**
	 * @return Returns the zipCode.
	 */
	public String getZipCode()
	{
		return zipCode;
	}
	/**
	 * @param zipCode The zipCode to set.
	 */
	public void setZipCode(String zipCode)
	{
		this.zipCode = zipCode;
	}
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -