1 21 22 package org.apache.commons.validator.example; 23 24 27 public class ValidateBean extends Object { 28 29 String lastName, firstName, street1, street2, city, state, postalCode, age; 30 31 public void setLastName(String lastName) { 32 this.lastName = lastName; 33 } 34 35 public void setFirstName(String firstName) { 36 this.firstName = firstName; 37 } 38 39 public void setStreet1(String street1) { 40 this.street1 = street1; 41 } 42 43 public void setStreet2(String street2) { 44 this.street2 = street2; 45 } 46 47 public void setCity(String city) { 48 this.city = city; 49 } 50 51 public void setState(String state) { 52 this.state = state; 53 } 54 55 public void setPostalCode(String postalCode) { 56 this.postalCode = postalCode; 57 } 58 59 public void setAge(String age) { 60 this.age = age; 61 } 62 63 public String getLastName() { 64 return this.lastName; 65 } 66 67 public String getFirstName() { 68 return this.firstName; 69 } 70 71 public String getStreet1() { 72 return this.street1; 73 } 74 75 public String getStreet2() { 76 return this.street2; 77 } 78 79 public String getCity() { 80 return this.city; 81 } 82 83 public String getState() { 84 return this.state; 85 } 86 87 public String getPostalCode() { 88 return this.postalCode; 89 } 90 91 public String getAge() { 92 return this.age; 93 } 94 95 public String toString() { 96 return "{lastname=" 97 + this.lastName 98 + ", firstname=" 99 + this.firstName 100 + ", street1=" 101 + this.street1 102 + ",\n street2=" 103 + this.street2 104 + ", " 105 + "city=" 106 + this.city 107 + ", state=" 108 + this.state 109 + ",\n postalcode=" 110 + this.postalCode 111 + ", age=" 112 + this.age 113 + "}"; 114 } 115 116 } 117 | Popular Tags |