tim@402: package de.intevation.gnv.artifactdatabase.objects.map; tim@402: tim@402: import java.util.Collection; tim@402: tim@402: /** ingo@690: * The default implementation of MapService. sascha@699: * sascha@684: * @author Tim Englich tim@402: */ tim@402: public class DefaultMapService implements MapService { tim@402: tim@959: /** tim@959: * The id of this mapservice. tim@959: */ tim@402: private String id = null; sascha@681: tim@959: /** tim@959: * The layer which are provided by this mapservice. tim@959: */ tim@402: private Collection layer = null; sascha@681: tim@959: /** tim@959: * The type of this mapservice. tim@959: */ tim@402: private String type = null; sascha@681: tim@959: /** tim@959: * The URl of this mapservice. tim@959: */ tim@402: private String url = null; tim@984: tim@984: /** tim@984: * The Bbox which surrounds the data of the Mapservice tim@984: */ tim@984: private String bbox = null; sascha@699: tim@402: /** tim@402: * Constructor tim@959: * tim@959: * @param id the id of this mapservice tim@959: * @param layer the layer which are provided by this mapservice tim@959: * @param type the type of this mapservice tim@959: * @param url the URl of this mapservice tim@402: */ sascha@681: public DefaultMapService(String id, Collection layer, tim@402: String type, String url) { tim@402: super(); tim@402: this.id = id; tim@402: this.layer = layer; tim@402: this.type = type; tim@402: this.url = url; tim@402: } tim@984: tim@984: /** tim@984: * Constructor tim@984: * tim@984: * @param id the id of this mapservice tim@984: * @param layer the layer which are provided by this mapservice tim@984: * @param type the type of this mapservice tim@984: * @param url the URl of this mapservice tim@984: * @param bbox the Bbox which surrounds the data of the Mapservice tim@984: */ tim@984: public DefaultMapService(String id, Collection layer, tim@984: String type, String url, String bbox) { tim@984: this(id,layer,type,url); tim@984: this.bbox = bbox; tim@984: } tim@402: ingo@690: tim@402: public String getID() { tim@402: return this.id; tim@402: } tim@402: ingo@690: tim@402: public Collection getLayer() { tim@402: return this.layer; tim@402: } tim@402: ingo@690: tim@402: public String getType() { tim@402: return this.type; tim@402: } tim@402: ingo@690: tim@402: public String getURL() { tim@402: return this.url; tim@402: } tim@984: tim@984: public String getBBoxValue() { tim@984: return this.bbox; tim@984: } tim@402: } sascha@700: // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :