Mercurial > dive4elements > gnv-client
comparison gnv-artifacts/src/main/java/de/intevation/gnv/artifacts/services/requestobjects/DefaultFIS.java @ 597:cf38b983d1f3
Added the Implementation of the MetaDataService which will deliver FIS and Parameters that match to Mapservices, Region and Layers that were sent to the Service.
gnv-artifacts/trunk@653 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Tim Englich <tim.englich@intevation.de> |
---|---|
date | Mon, 01 Feb 2010 14:52:05 +0000 |
parents | |
children | 9efc1c256dbb |
comparison
equal
deleted
inserted
replaced
596:75ef37387e84 | 597:cf38b983d1f3 |
---|---|
1 /** | |
2 * | |
3 */ | |
4 package de.intevation.gnv.artifacts.services.requestobjects; | |
5 | |
6 import java.util.Collection; | |
7 | |
8 /** | |
9 * @author Tim Englich <tim.englich@intevation.de> | |
10 * | |
11 */ | |
12 public class DefaultFIS implements FIS { | |
13 | |
14 | |
15 private String id = null; | |
16 | |
17 private Collection<Parameter> parameter = null; | |
18 | |
19 public DefaultFIS(String id){ | |
20 super(); | |
21 this.id = id; | |
22 } | |
23 /** | |
24 * Constructor | |
25 * @param id | |
26 * @param parameter | |
27 */ | |
28 public DefaultFIS(String id, Collection<Parameter> parameter) { | |
29 this(id); | |
30 this.parameter = parameter; | |
31 } | |
32 | |
33 /** | |
34 * @see de.intevation.gnv.artifacts.services.requestobjects.FIS#getID() | |
35 */ | |
36 public String getID() { | |
37 return this.id; | |
38 } | |
39 | |
40 /** | |
41 * @see de.intevation.gnv.artifacts.services.requestobjects.FIS#getParameter() | |
42 */ | |
43 public Collection<Parameter> getParameter() { | |
44 return this.parameter; | |
45 } | |
46 | |
47 @Override | |
48 public boolean equals(Object arg0) { | |
49 boolean returnValue = false; | |
50 if (arg0 instanceof FIS){ | |
51 returnValue = this.id.equals(((FIS)arg0).getID()); | |
52 } | |
53 return returnValue; | |
54 } | |
55 | |
56 } |