Mercurial > dive4elements > river
comparison flys-client/src/main/java/de/intevation/flys/client/shared/model/Data.java @ 8:9cb3ee7ed8ba
Added interfaces for Artifacts, its ArtifactDescription and Data.
flys-client/trunk@1316 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Fri, 11 Feb 2011 13:48:17 +0000 |
parents | |
children | fa0aad20af53 |
comparison
equal
deleted
inserted
replaced
7:a65793e08245 | 8:9cb3ee7ed8ba |
---|---|
1 package de.intevation.flys.client.shared.model; | |
2 | |
3 | |
4 /** | |
5 * A Data object represents the necessary data of a single state of the | |
6 * artifact. It might provide several DataItems or just a single DataItem. The | |
7 * <code>type</code> makes it possible to validate the input in the client. | |
8 * | |
9 * @author <a href="mailto:ingo.weinzierl@intevation.de">Ingo Weinzierl</a> | |
10 */ | |
11 public interface Data { | |
12 | |
13 /** | |
14 * Returns the label of the item. | |
15 * | |
16 * @return the label. | |
17 */ | |
18 public String getLabel(); | |
19 | |
20 | |
21 /** | |
22 * Returns the description of the item. | |
23 * | |
24 * @return the description. | |
25 */ | |
26 public String getDescription(); | |
27 | |
28 | |
29 /** | |
30 * Returns the type of the item. | |
31 * | |
32 * @return the type. | |
33 */ | |
34 public String getType(); | |
35 | |
36 | |
37 /** | |
38 * Returns the DataItems provided by this Data object. | |
39 * | |
40 * @return the DataItems. | |
41 */ | |
42 public DataItem[] getItems(); | |
43 } | |
44 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : |