//$Header$ /*---------------- FILE HEADER ------------------------------------------ This file is part of deegree. Copyright (C) 2001-2006 by: EXSE, Department of Geography, University of Bonn http://www.giub.uni-bonn.de/deegree/ lat/lon GmbH http://www.lat-lon.de This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA Contact: Andreas Poth lat/lon GmbH Aennchenstraße 19 53177 Bonn Germany E-Mail: poth@lat-lon.de Prof. Dr. Klaus Greve Department of Geography University of Bonn Meckenheimer Allee 166 53115 Bonn Germany E-Mail: greve@giub.uni-bonn.de ---------------------------------------------------------------------------*/ package org.deegree.ogcwebservices.wpvs.capabilities; import org.deegree.ogcwebservices.wpvs.configuration.AbstractDataSource; /** * This class represents an <code>ElevationModel</code> object. * * This elevation model object may be either an OGC-ElevationModel or a deegree-ElevationModel. * The OGC-ElevationModel is created from and contains only a String. * The deegree-ElevationModel is created from and contains a String and an AbstractDataSource object. * * @author <a href="mailto:mays@lat-lon.de">Judit Mays</a> * @author last edited by: $Author$ * * @version 2.0, $Revision$, $Date$ * * @since 2.0 */ public class ElevationModel { private AbstractDataSource[] dataSources; private String name; private Dataset parentDataset; /** * Creates a new OGC <code>ElevationModel</code> object from name. * * @param name */ public ElevationModel( String name ) { this.name = name; } /** * Creates a new deegree <code>ElevationModel</code> object from name and dataSources. * * @param name * @param dataSource */ public ElevationModel( String name, AbstractDataSource[] dataSources ) { this.name = name; this.dataSources = dataSources; } /** * @return Returns an array of dataSources. */ public AbstractDataSource[] getDataSources() { return dataSources; } /** * @return Returns the name. */ public String getName() { return name; } public Dataset getParentDataset(){ return this.parentDataset; } public String toString(){ return getClass().getName() + ": " + getName(); } public void setParentDataset( Dataset parentDataset ) { this.parentDataset = parentDataset; } } /* ******************************************************************** Changes to this class. What the people have been up to: $Log$ Revision 1.10 2006/08/29 19:54:14 poth footer corrected Revision 1.9 2006/06/20 07:44:11 taddei EModel knows its parent now Revision 1.8 2006/04/06 20:25:25 poth *** empty log message *** Revision 1.7 2006/03/30 21:20:26 poth *** empty log message *** Revision 1.6 2006/03/09 15:44:53 taddei added toString() Revision 1.5 2005/12/08 16:42:40 mays update according to schema changes: add param name and corresponding constructor Revision 1.4 2005/12/05 09:36:38 mays revision of comments Revision 1.3 2005/12/01 15:50:17 mays changed content of ElevationModel from 1 to n DataSource(s) Revision 1.2 2005/12/01 10:30:14 mays add standard footer to all java classes in wpvs package ******************************************************************** */