001    //$HeadURL: https://svn.wald.intevation.org/svn/deegree/base/branches/2.3_testing/src/org/deegree/ogcbase/ContactAddress.java $
002    /*----------------------------------------------------------------------------
003     This file is part of deegree, http://deegree.org/
004     Copyright (C) 2001-2009 by:
005       Department of Geography, University of Bonn
006     and
007       lat/lon GmbH
008    
009     This library is free software; you can redistribute it and/or modify it under
010     the terms of the GNU Lesser General Public License as published by the Free
011     Software Foundation; either version 2.1 of the License, or (at your option)
012     any later version.
013     This library is distributed in the hope that it will be useful, but WITHOUT
014     ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
015     FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
016     details.
017     You should have received a copy of the GNU Lesser General Public License
018     along with this library; if not, write to the Free Software Foundation, Inc.,
019     59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
020    
021     Contact information:
022    
023     lat/lon GmbH
024     Aennchenstr. 19, 53177 Bonn
025     Germany
026     http://lat-lon.de/
027    
028     Department of Geography, University of Bonn
029     Prof. Dr. Klaus Greve
030     Postfach 1147, 53001 Bonn
031     Germany
032     http://www.geographie.uni-bonn.de/deegree/
033    
034     e-mail: info@deegree.org
035    ----------------------------------------------------------------------------*/
036    package org.deegree.ogcbase;
037    
038    /**
039     * Specifies the data structure of a address and the access to its components based on ISO 19115.
040     *
041     * @author <a href="mailto:k.lupp@web.de">Katharina Lupp</a>
042     * @author <a href="mailto:mschneider@lat-lon.de">Markus Schneider</a>
043     * @version $Revision: 18195 $, $Date: 2009-06-18 17:55:39 +0200 (Do, 18. Jun 2009) $
044     * @since 1.0
045     */
046    public class ContactAddress {
047    
048        private String address = null;
049    
050        private String addressType = null;
051    
052        private String city = null;
053    
054        private String country = null;
055    
056        private String postCode = null;
057    
058        private String stateOrProvince = null;
059    
060        /**
061         * constructor initializing the class with ContactAddress Strings
062         *
063         * @param addressType
064         * @param address
065         * @param city
066         * @param stateOrProvince
067         * @param postCode
068         * @param country
069         */
070        public ContactAddress( String addressType, String address, String city, String stateOrProvince, String postCode,
071                               String country ) {
072            setAddressType( addressType );
073            setAddress( address );
074            setCity( city );
075            setStateOrProvince( stateOrProvince );
076            setPostCode( postCode );
077            setCountry( country );
078        }
079    
080        /**
081         * returns the address type. e.g. 'postal'
082         *
083         * @return the address type. e.g. 'postal'
084         */
085        public String getAddressType() {
086            return addressType;
087        }
088    
089        /**
090         * sets the address type. e.g. 'postal'
091         *
092         * @param addressType
093         */
094        public void setAddressType( String addressType ) {
095            this.addressType = addressType;
096        }
097    
098        /**
099         * returns the address. usally this is the street and number of a building. It also can be a
100         * p.o. box
101         *
102         * @return the address. usally this is the street and number of a building. It also can be a
103         *         p.o. box
104         */
105        public String getAddress() {
106            return address;
107        }
108    
109        /**
110         * sets the address. usally this is the street and number of a building. It also can be a p.o.
111         * box
112         *
113         * @param address
114         */
115        public void setAddress( String address ) {
116            this.address = address;
117        }
118    
119        /**
120         * returns the name of the city
121         *
122         * @return the name of the city
123         */
124        public String getCity() {
125            return city;
126        }
127    
128        /**
129         * sets the name of the city
130         *
131         * @param city
132         */
133        public void setCity( String city ) {
134            this.city = city;
135        }
136    
137        /**
138         * returns the name of the state or province of the address.
139         *
140         * @return the name of the state or province of the address.
141         */
142        public String getStateOrProvince() {
143            return stateOrProvince;
144        }
145    
146        /**
147         * sets the name of the state or province of the address.
148         *
149         * @param stateOrProvince
150         */
151        public void setStateOrProvince( String stateOrProvince ) {
152            this.stateOrProvince = stateOrProvince;
153        }
154    
155        /**
156         * returns the post code. This doesn't contain an abbreviation for the country
157         *
158         * @return the post code. This doesn't contain an abbreviation for the country
159         */
160        public String getPostCode() {
161            return postCode;
162        }
163    
164        /**
165         * sets the post code. This doesn't contain an abbreviation for the country
166         *
167         * @param postCode
168         */
169        public void setPostCode( String postCode ) {
170            this.postCode = postCode;
171        }
172    
173        /**
174         * returns the name of the country. this should be the complete name and not an abbreviation.
175         *
176         * @return the name of the country. this should be the complete name and not an abbreviation.
177         */
178        public String getCountry() {
179            return country;
180        }
181    
182        /**
183         * sets the name of the country. this should be the complete name and not an abbreviation.
184         *
185         * @param country
186         */
187        public void setCountry( String country ) {
188            this.country = country;
189        }
190    
191    }