001: /*
002: * $Id$ $Revision$ $Date$
003: *
004: * ==================================================================== Licensed
005: * under the Apache License, Version 2.0 (the "License"); you may not use this
006: * file except in compliance with the License. You may obtain a copy of the
007: * License at
008: *
009: * http://www.apache.org/licenses/LICENSE-2.0
010: *
011: * Unless required by applicable law or agreed to in writing, software
012: * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
013: * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
014: * License for the specific language governing permissions and limitations under
015: * the License.
016: */
017: package wicket.examples.compref;
018:
019: import java.io.Serializable;
020:
021: /**
022: * An address.
023: */
024: public class Address implements Serializable {
025: private String address;
026: private String postcode;
027: private String city;
028: private String country;
029:
030: /**
031: * Construct.
032: */
033: public Address() {
034: }
035:
036: /**
037: * Gets the address.
038: *
039: * @return address
040: */
041: public String getAddress() {
042: return address;
043: }
044:
045: /**
046: * Sets the address.
047: *
048: * @param address
049: * address
050: */
051: public void setAddress(String address) {
052: this .address = address;
053: }
054:
055: /**
056: * Gets the city.
057: *
058: * @return city
059: */
060: public String getCity() {
061: return city;
062: }
063:
064: /**
065: * Sets the city.
066: *
067: * @param city
068: * city
069: */
070: public void setCity(String city) {
071: this .city = city;
072: }
073:
074: /**
075: * Gets the country.
076: *
077: * @return country
078: */
079: public String getCountry() {
080: return country;
081: }
082:
083: /**
084: * Sets the country.
085: *
086: * @param country
087: * country
088: */
089: public void setCountry(String country) {
090: this .country = country;
091: }
092:
093: /**
094: * Gets the postcode.
095: *
096: * @return postcode
097: */
098: public String getPostcode() {
099: return postcode;
100: }
101:
102: /**
103: * Sets the postcode.
104: *
105: * @param postcode
106: * postcode
107: */
108: public void setPostcode(String postcode) {
109: this .postcode = postcode;
110: }
111:
112: /**
113: * @see java.lang.Object#toString()
114: */
115: public String toString() {
116: return "[Address address=" + address + ", postcode=" + postcode
117: + ", city=" + city + ", country=" + country + "]";
118: }
119: }
|