ingo@1022: /*
ingo@1022: * Copyright (c) 2010 by Intevation GmbH
ingo@1022: *
ingo@1022: * This program is free software under the LGPL (>=v2.1)
ingo@1022: * Read the file LGPL.txt coming with the software for details
ingo@1022: * or visit http://www.gnu.org/licenses/ if it does not exist.
ingo@1022: */
ingo@1022:
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;
tim@994:
tim@994: /**
tim@994: * The time until the server will provide the data.
tim@994: */
tim@994: private String ttl = 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@994: * @param ttl the time until the server will provide the data.
tim@984: */
tim@984: public DefaultMapService(String id, Collection layer,
tim@994: String type, String url, String bbox, String ttl) {
tim@984: this(id,layer,type,url);
tim@984: this.bbox = bbox;
tim@994: this.ttl = ttl;
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@994: public String getTtl() {
tim@994: return this.ttl;
tim@994: }
tim@402: }
sascha@700: // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :