comparison flys-client/src/main/java/de/intevation/flys/client/shared/model/DefaultData.java @ 12:fa0aad20af53

Adjusted interfaces used for the ArtifactDescription and added default implementations. flys-client/trunk@1321 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Thu, 17 Feb 2011 08:31:33 +0000
parents
children a85bac235069
comparison
equal deleted inserted replaced
11:6aeb4072eeb4 12:fa0aad20af53
1 package de.intevation.flys.client.shared.model;
2
3
4 /**
5 * The default implementation of a {@link Data} item. This class just implements
6 * constructors to create instances and the necessary methods of the interface.
7 *
8 * @author <a href="mailto:ingo.weinzierl@intevation.de">Ingo Weinzierl</a>
9 */
10 public class DefaultData implements Data {
11
12 /** The label of this Data object.*/
13 protected String label;
14
15 /** The description.*/
16 protected String description;
17
18 /** The type.*/
19 protected String type;
20
21 /** The DataItems.*/
22 protected DataItem[] items;
23
24
25 public DefaultData() {
26 }
27
28
29 /**
30 * The default constructor to create new DefaultData objects.
31 *
32 * @param label The label.
33 * @param description The description.
34 * @param type The type.
35 * @param items The DataItems.
36 */
37 public DefaultData(
38 String label, String description, String type, DataItem[] items)
39 {
40 this.label = label;
41 this.description = description;
42 this.type = type;
43 this.items = items;
44 }
45
46
47 public String getLabel() {
48 return label;
49 }
50
51
52 public String getDescription() {
53 return description;
54 }
55
56
57 public String getType() {
58 return type;
59 }
60
61
62 public DataItem[] getItems() {
63 return items;
64 }
65 }
66 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :

http://dive4elements.wald.intevation.org