001 //$HeadURL: svn+ssh://rbezema@svn.wald.intevation.org/deegree/base/branches/2.2_testing/src/org/deegree/model/metadata/iso19115/ContactInfo.java $ 002 /* 003 ---------------- FILE HEADER ------------------------------------------ 004 005 This file is part of deegree. 006 Copyright (C) 2001-2008 by: 007 EXSE, Department of Geography, University of Bonn 008 http://www.giub.uni-bonn.de/deegree/ 009 lat/lon GmbH 010 http://www.lat-lon.de 011 012 This library is free software; you can redistribute it and/or 013 modify it under the terms of the GNU Lesser General Public 014 License as published by the Free Software Foundation; either 015 version 2.1 of the License, or (at your option) any later version. 016 017 This library is distributed in the hope that it will be useful, 018 but WITHOUT ANY WARRANTY; without even the implied warranty of 019 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 020 Lesser General Public License for more details. 021 022 You should have received a copy of the GNU Lesser General Public 023 License along with this library; if not, write to the Free Software 024 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 025 026 Contact: 027 028 Andreas Poth 029 lat/lon GmbH 030 Aennchenstr. 19 031 53115 Bonn 032 Germany 033 E-Mail: poth@lat-lon.de 034 035 Prof. Dr. Klaus Greve 036 Department of Geography 037 University of Bonn 038 Meckenheimer Allee 166 039 53115 Bonn 040 Germany 041 E-Mail: greve@giub.uni-bonn.de 042 043 044 ---------------------------------------------------------------------------*/ 045 046 package org.deegree.model.metadata.iso19115; 047 048 /** 049 * Represents ContactInfo entity compliant to ISO 19115 schema. 050 * 051 * 052 * @author <a href="mailto:schaefer@lat-lon.de">Axel Schaefer </a> 053 * @version $Revision: 9343 $ $Date: 2007-12-27 14:30:32 +0100 (Do, 27 Dez 2007) $ 054 * @see <a href="http://http://www.iso.ch">International Organization for Standardization</a> 055 */ 056 public class ContactInfo { 057 058 private Address address = null; 059 060 private String contactinstructions = null; 061 062 private String hoursofservice = null; 063 064 private OnlineResource onlineresource = null; 065 066 private Phone phone = null; 067 068 /** 069 * Creates a new instance of ContactInfo 070 * 071 * @param address 072 * @param contactinstructions 073 * @param hoursofservice 074 * @param onlineresource 075 * @param phone 076 */ 077 public ContactInfo( Address address, String contactinstructions, String hoursofservice, 078 OnlineResource onlineresource, Phone phone ) { 079 setAddress( address ); 080 setContactInstructions( contactinstructions ); 081 setHoursOfService( hoursofservice ); 082 setOnLineResource( onlineresource ); 083 setPhone( phone ); 084 } 085 086 /** 087 * @return address 088 */ 089 public Address getAddress() { 090 return address; 091 } 092 093 /** 094 * @see ContactInfo#getAddress() 095 */ 096 public void setAddress( Address address ) { 097 this.address = address; 098 } 099 100 /** 101 * @return contact instructions 102 * 103 */ 104 public String getContactInstructions() { 105 return contactinstructions; 106 } 107 108 /** 109 * @see ContactInfo#getContactInstructions() 110 */ 111 public void setContactInstructions( String contactinstructions ) { 112 this.contactinstructions = contactinstructions; 113 } 114 115 /** 116 * @return hours of service 117 * 118 */ 119 public String getHoursOfService() { 120 return hoursofservice; 121 } 122 123 /** 124 * @see ContactInfo#getHoursOfService() 125 */ 126 public void setHoursOfService( String hoursofservice ) { 127 this.hoursofservice = hoursofservice; 128 } 129 130 /** 131 * @return online resource 132 * 133 */ 134 public OnlineResource getOnLineResource() { 135 return onlineresource; 136 } 137 138 /** 139 * @see ContactInfo#getOnLineResource() 140 */ 141 public void setOnLineResource( OnlineResource onlineresource ) { 142 this.onlineresource = onlineresource; 143 } 144 145 /** 146 * @return phone 147 */ 148 public Phone getPhone() { 149 return phone; 150 } 151 152 /** 153 * @see ContactInfo#getPhone() 154 */ 155 public void setPhone( Phone phone ) { 156 this.phone = phone; 157 } 158 159 /** 160 * to String method 161 */ 162 public String toString() { 163 StringBuffer buf = new StringBuffer( 64 ); 164 buf.append( "address = " + address + "\n" ); 165 buf.append( "contactinstructions = " + contactinstructions + "\n" ); 166 buf.append( "hoursofservice = " + hoursofservice + "\n" ); 167 buf.append( "onlineresource = " + onlineresource + "\n" ); 168 buf.append( "phone = " + phone + "\n" ); 169 return buf.toString(); 170 } 171 172 }