Mercurial > dive4elements > river
comparison flys-artifacts/src/main/java/de/intevation/flys/artifacts/MainValuesArtifact.java @ 1059:fdb0f4ef96f0
Made FLYS artifacts cloneable.
flys-artifacts/trunk@2531 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Tue, 23 Aug 2011 11:07:21 +0000 |
parents | 9a77a9adbb36 |
children | b1b0a0b61845 |
comparison
equal
deleted
inserted
replaced
1058:c37084f31c84 | 1059:fdb0f4ef96f0 |
---|---|
27 /** | 27 /** |
28 * Artifact to access names of Points Of Interest along a segment of a river. | 28 * Artifact to access names of Points Of Interest along a segment of a river. |
29 */ | 29 */ |
30 public class MainValuesArtifact | 30 public class MainValuesArtifact |
31 extends StaticFLYSArtifact | 31 extends StaticFLYSArtifact |
32 implements Facet { | 32 { |
33 | |
34 /** The logger for this class. */ | 33 /** The logger for this class. */ |
35 private static Logger logger = Logger.getLogger(WINFOArtifact.class); | 34 private static Logger logger = Logger.getLogger(WINFOArtifact.class); |
36 | 35 |
37 /** The name of the artifact. */ | 36 /** The name of the artifact. */ |
38 public static final String ARTIFACT_NAME = "annotation"; | 37 public static final String ARTIFACT_NAME = "annotation"; |
52 Object context, | 51 Object context, |
53 CallMeta callMeta, | 52 CallMeta callMeta, |
54 Document data) | 53 Document data) |
55 { | 54 { |
56 logger.warn("MainValuesArtifact.setup"); | 55 logger.warn("MainValuesArtifact.setup"); |
57 ; | |
58 } | 56 } |
59 | 57 |
60 /** | 58 /** |
61 * Create the description of this MainValuesArtiface-instance. | 59 * Create the description of this MainValuesArtiface-instance. |
62 * | 60 * |
178 } | 176 } |
179 catch (IllegalArgumentException iae) { | 177 catch (IllegalArgumentException iae) { |
180 // state is not valid, so we do not append its outputs. | 178 // state is not valid, so we do not append its outputs. |
181 } | 179 } |
182 } | 180 } |
183 | |
184 | |
185 /* FACET IMPLEMENTATION */ | |
186 | |
187 | |
188 // TODO implement; what is index used for? | |
189 /** | |
190 * Returns the index of this facet. | |
191 * | |
192 * @return the index of this facet. | |
193 */ | |
194 public int getIndex() { | |
195 return 0; | |
196 } | |
197 | |
198 | |
199 /** | |
200 * Returns the name of this facet. | |
201 * | |
202 * @return the name of this facet. | |
203 */ | |
204 public String getName() { | |
205 // TODO define, static | |
206 return "FACETNAME"; | |
207 } | |
208 | |
209 | |
210 /** | |
211 * Returns the description of this facet. | |
212 * | |
213 * @return the description of this facet. | |
214 */ | |
215 public String getDescription() { | |
216 return null; | |
217 } | |
218 | |
219 | |
220 /** | |
221 * Returns the data this facet requires. | |
222 * | |
223 * @param artifact The owner artifact. | |
224 * @param context The CallContext. | |
225 * | |
226 * @return the data. | |
227 */ | |
228 public Object getData(Artifact artifact, CallContext context) { | |
229 return null; | |
230 } | |
231 | |
232 | |
233 /** | |
234 * Write the internal representation of a facet to a node. | |
235 * | |
236 * @param doc A Document. | |
237 * | |
238 * @return the representation as Node. | |
239 */ | |
240 public Node toXML(Document doc) { | |
241 return null; | |
242 } | |
243 | |
244 } | 181 } |