Mercurial > dive4elements > river
comparison flys-client/src/main/java/de/intevation/flys/client/shared/model/ArtifactDescription.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 * The artifact description describes a state of an artifact. There are | |
5 * operations defined that return former inserted data, possible input values | |
6 * and output targets that are available in the current state of the artifact. | |
7 * | |
8 * @author <a href="mailto:ingo.weinzierl@intevation.de">Ingo Weinzierl</a> | |
9 */ | |
10 public interface ArtifactDescription { | |
11 | |
12 /** | |
13 * Returns the data that have been inserted in former states of the | |
14 * artifact. | |
15 * | |
16 * @return the old data of former states. | |
17 */ | |
18 public Data[] getOldData(); | |
19 | |
20 | |
21 /** | |
22 * Returns the data with all its options that might be inserted in the | |
23 * current state of the artifact. | |
24 * | |
25 * @return the current data. | |
26 */ | |
27 public Data getCurrentData(); | |
28 | |
29 | |
30 /** | |
31 * Returns the current state as string. | |
32 * | |
33 * @return the current state. | |
34 */ | |
35 public String getCurrentState(); | |
36 | |
37 | |
38 /** | |
39 * Returns the reachable states as string. | |
40 * | |
41 * @return the reachable states. | |
42 */ | |
43 public String[] getReachableStates(); | |
44 } | |
45 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : |