001 //$HeadURL: $ 002 /*---------------- FILE HEADER ------------------------------------------ 003 This file is part of deegree. 004 Copyright (C) 2001-2008 by: 005 Department of Geography, University of Bonn 006 http://www.giub.uni-bonn.de/deegree/ 007 lat/lon GmbH 008 http://www.lat-lon.de 009 010 This library is free software; you can redistribute it and/or 011 modify it under the terms of the GNU Lesser General Public 012 License as published by the Free Software Foundation; either 013 version 2.1 of the License, or (at your option) any later version. 014 This library is distributed in the hope that it will be useful, 015 but WITHOUT ANY WARRANTY; without even the implied warranty of 016 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 017 Lesser General Public License for more details. 018 You should have received a copy of the GNU Lesser General Public 019 License along with this library; if not, write to the Free Software 020 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 021 Contact: 022 023 Andreas Poth 024 lat/lon GmbH 025 Aennchenstr. 19 026 53177 Bonn 027 Germany 028 E-Mail: poth@lat-lon.de 029 030 Prof. Dr. Klaus Greve 031 Department of Geography 032 University of Bonn 033 Meckenheimer Allee 166 034 53115 Bonn 035 Germany 036 E-Mail: greve@giub.uni-bonn.de 037 ---------------------------------------------------------------------------*/ 038 039 package org.deegree.owscommon_1_1_0; 040 041 import java.util.List; 042 043 import org.deegree.framework.util.Pair; 044 045 /** 046 * <code>ContactInfo</code> wraps all ows 1.1.0 contact info in a bean. 047 * 048 * @author <a href="mailto:bezema@lat-lon.de">Rutger Bezema</a> 049 * 050 * @author last edited by: $Author:$ 051 * 052 * @version $Revision:$, $Date:$ 053 * 054 */ 055 056 public class ContactInfo { 057 058 private final Pair<List<String>, List<String>> phone; 059 060 private final boolean hasAdress; 061 062 private final List<String> deliveryPoint; 063 064 private final String city; 065 066 private final String administrativeArea; 067 068 private final String postalCode; 069 070 private final String country; 071 072 private final List<String> electronicMailAddress; 073 074 private final String onlineResource; 075 076 private final String hoursOfService; 077 078 private final String contactInstructions; 079 080 081 /** 082 * @param phone as <list<Voice>,list<fax>> pair, or <code>null</code> if no phone was given. 083 * @param hasAdress 084 * @param deliveryPoint (s) from address. 085 * @param city from address 086 * @param administrativeArea from address 087 * @param postalCode from address 088 * @param country from address 089 * @param electronicMailAddress from address 090 * @param onlineResource 091 * @param hoursOfService 092 * @param contactInstructions 093 */ 094 public ContactInfo( Pair<List<String>,List<String>> phone, boolean hasAdress, List<String> deliveryPoint, 095 String city, String administrativeArea, String postalCode, String country, 096 List<String> electronicMailAddress, String onlineResource, String hoursOfService, 097 String contactInstructions ) { 098 this.phone = phone; 099 this.hasAdress = hasAdress; 100 this.deliveryPoint = deliveryPoint; 101 this.city = city; 102 this.administrativeArea = administrativeArea; 103 this.postalCode = postalCode; 104 this.country = country; 105 this.electronicMailAddress = electronicMailAddress; 106 this.onlineResource = onlineResource; 107 this.hoursOfService = hoursOfService; 108 this.contactInstructions = contactInstructions; 109 } 110 111 /** 112 * @return the phone as <list<Voice>,list<fax>> pair, or <code>null</code> if no phone was given. 113 */ 114 public final Pair<List<String>,List<String>> getPhone() { 115 return phone; 116 } 117 118 /** 119 * @return true if this contactinfo has an adress. 120 */ 121 public final boolean hasAdress() { 122 return hasAdress; 123 } 124 125 /** 126 * @return the deliveryPoint from address 127 */ 128 public final List<String> getDeliveryPoint() { 129 return deliveryPoint; 130 } 131 132 /** 133 * @return the city from address 134 */ 135 public final String getCity() { 136 return city; 137 } 138 139 /** 140 * @return the administrativeArea from address 141 */ 142 public final String getAdministrativeArea() { 143 return administrativeArea; 144 } 145 146 /** 147 * @return the postalCode. from address 148 */ 149 public final String getPostalCode() { 150 return postalCode; 151 } 152 153 /** 154 * @return the country from address 155 */ 156 public final String getCountry() { 157 return country; 158 } 159 160 /** 161 * @return the electronicMailAddress from address 162 */ 163 public final List<String> getElectronicMailAddress() { 164 return electronicMailAddress; 165 } 166 167 /** 168 * @return the onlineResource. 169 */ 170 public final String getOnlineResource() { 171 return onlineResource; 172 } 173 174 /** 175 * @return the hoursOfService. 176 */ 177 public final String getHoursOfService() { 178 return hoursOfService; 179 } 180 181 /** 182 * @return the contactInstructions. 183 */ 184 public final String getContactInstructions() { 185 return contactInstructions; 186 } 187 188 }