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

📄 validatebean.java

📁 是关于struts+hibernate+spring开发宝典的源代码,希望对大家有帮助,
💻 JAVA
字号:
/*
 * $Id: ValidateBean.java,v 1.2 2006/10/02 02:59:39 chenth Exp $
 * $Rev: 155434 $
 * $Date: 2006/10/02 02:59:39 $
 *
 * ====================================================================
 * Copyright 2000-2005 The Apache Software Foundation
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package cn.hxex.validator.example;

/**                                                       
 * A simple bean to use with the Validator Example.
 */
public class ValidateBean extends Object {

	String lastName, firstName, street1, street2, city, state, postalCode, age;

	public void setLastName(String lastName) {
		this.lastName = lastName;
	}

	public void setFirstName(String firstName) {
		this.firstName = firstName;
	}

	public void setStreet1(String street1) {
		this.street1 = street1;
	}

	public void setStreet2(String street2) {
		this.street2 = street2;
	}

	public void setCity(String city) {
		this.city = city;
	}

	public void setState(String state) {
		this.state = state;
	}

	public void setPostalCode(String postalCode) {
		this.postalCode = postalCode;
	}

	public void setAge(String age) {
		this.age = age;
	}

	public String getLastName() {
		return this.lastName;
	}

	public String getFirstName() {
		return this.firstName;
	}

	public String getStreet1() {
		return this.street1;
	}

	public String getStreet2() {
		return this.street2;
	}

	public String getCity() {
		return this.city;
	}

	public String getState() {
		return this.state;
	}

	public String getPostalCode() {
		return this.postalCode;
	}

	public String getAge() {
		return this.age;
	}

	public String toString() {
		return "{lastname=" + this.lastName + ", firstname=" + this.firstName
				+ ", street1=" + this.street1 + ",\n street2=" + this.street2
				+ ", " + "city=" + this.city + ", state=" + this.state
				+ ",\n postalcode=" + this.postalCode + ", age=" + this.age
				+ "}";
	}

}

⌨️ 快捷键说明

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