001    //$HeadURL: https://svn.wald.intevation.org/svn/deegree/base/branches/2.3_testing/src/org/deegree/owscommon_1_1_0/ContactInfo.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    
037    package org.deegree.owscommon_1_1_0;
038    
039    import java.util.List;
040    
041    import org.deegree.framework.util.Pair;
042    
043    /**
044     * <code>ContactInfo</code> wraps all ows 1.1.0 contact info in a bean.
045     *
046     * @author <a href="mailto:bezema@lat-lon.de">Rutger Bezema</a>
047     *
048     * @author last edited by: $Author: mschneider $
049     *
050     * @version $Revision: 18195 $, $Date: 2009-06-18 17:55:39 +0200 (Do, 18. Jun 2009) $
051     *
052     */
053    
054    public class ContactInfo {
055    
056        private final Pair<List<String>, List<String>> phone;
057    
058        private final boolean hasAdress;
059    
060        private final List<String> deliveryPoint;
061    
062        private final String city;
063    
064        private final String administrativeArea;
065    
066        private final String postalCode;
067    
068        private final String country;
069    
070        private final List<String> electronicMailAddress;
071    
072        private final String onlineResource;
073    
074        private final String hoursOfService;
075    
076        private final String contactInstructions;
077    
078        /**
079         * @param phone
080         *            as &lt;list&lt;Voice&gt;,list&lt;fax&gt;&gt pair, or <code>null</code> if no
081         *            phone was given.
082         * @param hasAdress
083         * @param deliveryPoint
084         *            (s) from address.
085         * @param city
086         *            from address
087         * @param administrativeArea
088         *            from address
089         * @param postalCode
090         *            from address
091         * @param country
092         *            from address
093         * @param electronicMailAddress
094         *            from address
095         * @param onlineResource
096         * @param hoursOfService
097         * @param contactInstructions
098         */
099        public ContactInfo( Pair<List<String>, List<String>> phone, boolean hasAdress, List<String> deliveryPoint,
100                            String city, String administrativeArea, String postalCode, String country,
101                            List<String> electronicMailAddress, String onlineResource, String hoursOfService,
102                            String contactInstructions ) {
103            this.phone = phone;
104            this.hasAdress = hasAdress;
105            this.deliveryPoint = deliveryPoint;
106            this.city = city;
107            this.administrativeArea = administrativeArea;
108            this.postalCode = postalCode;
109            this.country = country;
110            this.electronicMailAddress = electronicMailAddress;
111            this.onlineResource = onlineResource;
112            this.hoursOfService = hoursOfService;
113            this.contactInstructions = contactInstructions;
114        }
115    
116        /**
117         * @return the phone as &lt;list&lt;Voice&gt;,list&lt;fax&gt;&gt pair, or <code>null</code> if
118         *         no phone was given.
119         */
120        public final Pair<List<String>, List<String>> getPhone() {
121            return phone;
122        }
123    
124        /**
125         * @return true if this contactinfo has an adress.
126         */
127        public final boolean hasAdress() {
128            return hasAdress;
129        }
130    
131        /**
132         * @return the deliveryPoint from address
133         */
134        public final List<String> getDeliveryPoint() {
135            return deliveryPoint;
136        }
137    
138        /**
139         * @return the city from address
140         */
141        public final String getCity() {
142            return city;
143        }
144    
145        /**
146         * @return the administrativeArea from address
147         */
148        public final String getAdministrativeArea() {
149            return administrativeArea;
150        }
151    
152        /**
153         * @return the postalCode. from address
154         */
155        public final String getPostalCode() {
156            return postalCode;
157        }
158    
159        /**
160         * @return the country from address
161         */
162        public final String getCountry() {
163            return country;
164        }
165    
166        /**
167         * @return the electronicMailAddress from address
168         */
169        public final List<String> getElectronicMailAddress() {
170            return electronicMailAddress;
171        }
172    
173        /**
174         * @return the onlineResource.
175         */
176        public final String getOnlineResource() {
177            return onlineResource;
178        }
179    
180        /**
181         * @return the hoursOfService.
182         */
183        public final String getHoursOfService() {
184            return hoursOfService;
185        }
186    
187        /**
188         * @return the contactInstructions.
189         */
190        public final String getContactInstructions() {
191            return contactInstructions;
192        }
193    
194    }