001: package org.databene.domain.address;
002:
003: import org.databene.region.Country;
004: import org.databene.region.PhoneNumber;
005:
006: /**
007: * (c) Copyright 2006 by Volker Bergmann
008: * Created: 11.06.2006 08:05:00
009: *
010: */
011: public class Address {
012:
013: public String street;
014: public String houseNumber;
015: public String zipCode;
016: public String city;
017: public Country country;
018: public PhoneNumber privatePhone;
019: public PhoneNumber officePhone;
020: public PhoneNumber mobilePhone;
021: public PhoneNumber fax;
022:
023: public Address() {
024: this (null, null, null, null, null, null, null, null, null);
025: }
026:
027: public Address(String street, String houseNumber, String zipCode,
028: String city, Country country, PhoneNumber privatePhone,
029: PhoneNumber officePhone, PhoneNumber mobilePhone,
030: PhoneNumber fax) {
031: this .street = street;
032: this .houseNumber = houseNumber;
033: this .zipCode = zipCode;
034: this .city = city;
035: this .country = country;
036: this .privatePhone = privatePhone;
037: this .officePhone = officePhone;
038: this .mobilePhone = mobilePhone;
039: this .fax = fax;
040: }
041:
042: public String getStreet() {
043: return street;
044: }
045:
046: public void setStreet(String street) {
047: this .street = street;
048: }
049:
050: public String getHouseNumber() {
051: return houseNumber;
052: }
053:
054: public void setHouseNumber(String houseNumber) {
055: this .houseNumber = houseNumber;
056: }
057:
058: public String getZipCode() {
059: return zipCode;
060: }
061:
062: public void setZipCode(String zipCode) {
063: this .zipCode = zipCode;
064: }
065:
066: public String getCity() {
067: return city;
068: }
069:
070: public void setCity(String city) {
071: this .city = city;
072: }
073:
074: public Country getCountry() {
075: return country;
076: }
077:
078: public void setCountry(Country country) {
079: this .country = country;
080: }
081:
082: public PhoneNumber getPrivatePhone() {
083: return privatePhone;
084: }
085:
086: public void setPrivatePhone(PhoneNumber privatePhone) {
087: this .privatePhone = privatePhone;
088: }
089:
090: public PhoneNumber getOfficePhone() {
091: return officePhone;
092: }
093:
094: public void setOfficePhone(PhoneNumber officePhone) {
095: this .officePhone = officePhone;
096: }
097:
098: public PhoneNumber getMobilePhone() {
099: return mobilePhone;
100: }
101:
102: public void setMobilePhone(PhoneNumber mobilePhone) {
103: this .mobilePhone = mobilePhone;
104: }
105:
106: public PhoneNumber getFax() {
107: return fax;
108: }
109:
110: public void setFax(PhoneNumber fax) {
111: this .fax = fax;
112: }
113:
114: public String toString() {
115: return street + " " + houseNumber + ", " + zipCode + " " + city
116: + ", " + country + " (private:" + privatePhone
117: + ", work:" + officePhone + ", mobile:" + mobilePhone
118: + ", fax:" + fax + ')';
119: }
120: }
|