Mercurial > dive4elements > gnv-client
comparison gnv-artifacts/src/main/java/de/intevation/gnv/state/InputData.java @ 875:5e9efdda6894
merged gnv-artifacts/1.0
author | Thomas Arendsen Hein <thomas@intevation.de> |
---|---|
date | Fri, 28 Sep 2012 12:13:56 +0200 |
parents | 05bf8534a35a |
children | f953c9a559d8 |
comparison
equal
deleted
inserted
replaced
722:bb3ffe7d719e | 875:5e9efdda6894 |
---|---|
1 package de.intevation.gnv.state; | |
2 | |
3 import java.io.Serializable; | |
4 | |
5 /** | |
6 * This interface defines the basic methods used to store multiple values with | |
7 * a specific key and name. | |
8 * | |
9 * @author <a href="mailto:tim.englich@intevation.de">Tim Englich</a> | |
10 * | |
11 */ | |
12 public interface InputData extends Serializable { | |
13 | |
14 /** | |
15 * Method to Retrieve the name of this input data item. | |
16 * | |
17 * @return the name | |
18 */ | |
19 public String getName(); | |
20 | |
21 /** | |
22 * Method to retrieve the value of this input data item. A value might be a | |
23 * list of values separated by a specific character. | |
24 * | |
25 * @return the value | |
26 */ | |
27 public String getValue(); | |
28 | |
29 /** | |
30 * Method to store a further object at this input data item. | |
31 * | |
32 * @param o A further object. | |
33 */ | |
34 public void setObject(Object o); | |
35 | |
36 /** | |
37 * Method to retrieve the extra object. | |
38 * | |
39 * @return the extra object. | |
40 */ | |
41 public Object getObject(); | |
42 | |
43 /** | |
44 * Method to store descriptions for this input data item. | |
45 * | |
46 * @param description Array of descriptions. | |
47 */ | |
48 public void setDescription(String[] description); | |
49 | |
50 /** | |
51 * Method to retrieve a description specified by a given key. | |
52 * | |
53 * @param key Key. | |
54 * @return the description for this key. | |
55 */ | |
56 public String getDescription(String key); | |
57 | |
58 /** | |
59 * Method to retrieve all descriptions of this input data item. | |
60 * | |
61 * @return descriptions. | |
62 */ | |
63 public String[] getDescription(); | |
64 | |
65 /** | |
66 * Append a further string value to the value field devided by a separater | |
67 * character. | |
68 * | |
69 * @param value Value to append. | |
70 */ | |
71 public void concartValue(String value); | |
72 | |
73 /** | |
74 * Method to retrieve the character separated values split into an array. | |
75 * | |
76 * @return values as array. | |
77 */ | |
78 String[] splitValue(); | |
79 } | |
80 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf-8 : |