Mercurial > dive4elements > gnv-client
comparison gnv-artifacts/src/main/java/de/intevation/gnv/artifacts/services/requestobjects/DefaultFIS.java @ 826:32d01e1ce2df
Added more JavaDocs
gnv-artifacts/trunk@920 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Tim Englich <tim.englich@intevation.de> |
---|---|
date | Tue, 13 Apr 2010 12:32:24 +0000 |
parents | feae2f9d6c6f |
children | 05bf8534a35a |
comparison
equal
deleted
inserted
replaced
825:b43e7205e83c | 826:32d01e1ce2df |
---|---|
9 * @author <a href="mailto:tim.englich@intevation.de">Tim Englich</a> | 9 * @author <a href="mailto:tim.englich@intevation.de">Tim Englich</a> |
10 * | 10 * |
11 */ | 11 */ |
12 public class DefaultFIS implements FIS { | 12 public class DefaultFIS implements FIS { |
13 | 13 |
14 | 14 /** |
15 * The ID of the FIS | |
16 */ | |
15 private String id = null; | 17 private String id = null; |
16 | 18 |
19 /** | |
20 * The Parameter which belongs to the FIS. | |
21 */ | |
17 private Collection<Parameter> parameter = null; | 22 private Collection<Parameter> parameter = null; |
18 | 23 |
19 /** | 24 /** |
20 * Constructor | 25 * Constructor |
21 * | 26 * |
33 public DefaultFIS(String id, Collection<Parameter> parameter) { | 38 public DefaultFIS(String id, Collection<Parameter> parameter) { |
34 this(id); | 39 this(id); |
35 this.parameter = parameter; | 40 this.parameter = parameter; |
36 } | 41 } |
37 | 42 |
38 /** | 43 |
39 * @return the id. | |
40 */ | |
41 public String getID() { | 44 public String getID() { |
42 return this.id; | 45 return this.id; |
43 } | 46 } |
44 | 47 |
45 /** | |
46 * @return the parameter collection. | |
47 */ | |
48 public Collection<Parameter> getParameter() { | 48 public Collection<Parameter> getParameter() { |
49 return this.parameter; | 49 return this.parameter; |
50 } | 50 } |
51 | 51 |
52 /** | 52 /** |
74 int hash = 7; | 74 int hash = 7; |
75 hash = 47 * hash + (this.id != null ? this.id.hashCode() : 0); | 75 hash = 47 * hash + (this.id != null ? this.id.hashCode() : 0); |
76 hash = 47 * hash + (this.parameter != null ? this.parameter.hashCode() : 0); | 76 hash = 47 * hash + (this.parameter != null ? this.parameter.hashCode() : 0); |
77 return hash; | 77 return hash; |
78 } | 78 } |
79 | |
79 /** | 80 /** |
80 * @param parameter Collection of parameters. | 81 * @param parameter Collection of parameters. |
81 */ | 82 */ |
82 public void addParameter(Collection<Parameter> parameter) { | 83 public void addParameter(Collection<Parameter> parameter) { |
83 if (this.parameter != null){ | 84 if (this.parameter != null){ |
90 } | 91 } |
91 }else{ | 92 }else{ |
92 this.parameter = parameter; | 93 this.parameter = parameter; |
93 } | 94 } |
94 } | 95 } |
95 | |
96 | |
97 | |
98 } | 96 } |
99 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : | 97 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : |