001 //$HeadURL: svn+ssh://rbezema@svn.wald.intevation.org/deegree/base/branches/2.2_testing/src/org/deegree/ogcwebservices/sos/ComponentMetadata.java $ 002 /*---------------- FILE HEADER ------------------------------------------ 003 004 This file is part of deegree. 005 Copyright (C) 2001-2008 by: 006 EXSE, Department of Geography, University of Bonn 007 http://www.giub.uni-bonn.de/deegree/ 008 lat/lon GmbH 009 http://www.lat-lon.de 010 011 This library is free software; you can redistribute it and/or 012 modify it under the terms of the GNU Lesser General Public 013 License as published by the Free Software Foundation; either 014 version 2.1 of the License, or (at your option) any later version. 015 016 This library is distributed in the hope that it will be useful, 017 but WITHOUT ANY WARRANTY; without even the implied warranty of 018 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 019 Lesser General Public License for more details. 020 021 You should have received a copy of the GNU Lesser General Public 022 License along with this library; if not, write to the Free Software 023 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 024 025 Contact: 026 027 Andreas Poth 028 lat/lon GmbH 029 Aennchenstraße 19 030 53177 Bonn 031 Germany 032 E-Mail: poth@lat-lon.de 033 034 Prof. Dr. Klaus Greve 035 lat/lon GmbH 036 Aennchenstraße 19 037 53177 Bonn 038 Germany 039 E-Mail: greve@giub.uni-bonn.de 040 041 ---------------------------------------------------------------------------*/ 042 package org.deegree.ogcwebservices.sos; 043 044 import org.deegree.ogcwebservices.sos.sensorml.Classifier; 045 import org.deegree.ogcwebservices.sos.sensorml.ComponentDescription; 046 import org.deegree.ogcwebservices.sos.sensorml.EngineeringCRS; 047 import org.deegree.ogcwebservices.sos.sensorml.Identifier; 048 import org.deegree.ogcwebservices.sos.sensorml.LocationModel; 049 050 /** 051 * holds the metadata of a generic component; the necessary parts of the SensorML spec are 052 * implemented; please read the SensorML spec for more info 053 * 054 * @author <a href="mailto:mkulbe@lat-lon.de">Matthias Kulbe </a> 055 * @author last edited by: $Author: apoth $ 056 * 057 * @version $Revision: 9345 $, $Date: 2007-12-27 17:22:25 +0100 (Do, 27 Dez 2007) $ 058 */ 059 public abstract class ComponentMetadata { 060 061 private Identifier[] identifiedAs = null; 062 063 private Classifier[] classifiedAs = null; 064 065 private EngineeringCRS hasCRS = null; 066 067 private LocationModel[] locatedUsing = null; 068 069 private ComponentDescription describedBy = null; 070 071 private String attachedTo = null; 072 073 /** 074 * Constructor 075 * 076 * @param identifiedAs 077 * @param classifiedAs 078 * @param hasCRS 079 * @param locatedUsing 080 * @param describedBy 081 * @param attachedTo 082 */ 083 protected ComponentMetadata( Identifier[] identifiedAs, Classifier[] classifiedAs, EngineeringCRS hasCRS, 084 LocationModel[] locatedUsing, ComponentDescription describedBy, String attachedTo ) { 085 086 this.identifiedAs = identifiedAs; 087 this.classifiedAs = classifiedAs; 088 this.hasCRS = hasCRS; 089 this.locatedUsing = locatedUsing; 090 this.describedBy = describedBy; 091 this.attachedTo = attachedTo; 092 } 093 094 /** 095 * 096 * @return attachedTo 097 */ 098 public String getAttachedTo() { 099 return attachedTo; 100 } 101 102 /** 103 * 104 * @return classifiedAs 105 */ 106 public Classifier[] getClassifiedAs() { 107 return classifiedAs; 108 } 109 110 /** 111 * 112 * @return describedBy 113 */ 114 public ComponentDescription getDescribedBy() { 115 return describedBy; 116 } 117 118 /** 119 * 120 * @return hasCRS 121 */ 122 public EngineeringCRS getHasCRS() { 123 return hasCRS; 124 } 125 126 /** 127 * 128 * @return identifiedAs 129 */ 130 public Identifier[] getIdentifiedAs() { 131 return identifiedAs; 132 } 133 134 /** 135 * 136 * @return locatedUsing 137 */ 138 public LocationModel[] getLocatedUsing() { 139 return locatedUsing; 140 } 141 142 }