annotate gwt-client/src/main/java/org/dive4elements/river/client/shared/model/WQInfoObjectImpl.java @ 7560:56480f609a34

issue1542: WQInfoObjectImpl: Changed implementation from String to Date.
author Felix Wolfsteller <felix.wolfsteller@intevation.de>
date Tue, 12 Nov 2013 17:14:52 +0100
parents 19a133698eaf
children
rev   line source
5861
172338b1407f GWT client: Added copyright header.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5838
diff changeset
1 /* Copyright (C) 2011, 2012, 2013 by Bundesanstalt für Gewässerkunde
172338b1407f GWT client: Added copyright header.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5838
diff changeset
2 * Software engineering by Intevation GmbH
172338b1407f GWT client: Added copyright header.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5838
diff changeset
3 *
5993
ea9eef426962 Removed trailing whitespace.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5861
diff changeset
4 * This file is Free Software under the GNU AGPL (>=v3)
5861
172338b1407f GWT client: Added copyright header.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5838
diff changeset
5 * and comes with ABSOLUTELY NO WARRANTY! Check out the
5993
ea9eef426962 Removed trailing whitespace.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5861
diff changeset
6 * documentation coming with Dive4Elements River for details.
5861
172338b1407f GWT client: Added copyright header.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5838
diff changeset
7 */
172338b1407f GWT client: Added copyright header.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5838
diff changeset
8
5835
821a02bbfb4e Fixed internal java dependencies
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5834
diff changeset
9 package org.dive4elements.river.client.shared.model;
245
1e73d5a4859c Added new WQ info service and data structures.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
10
7560
56480f609a34 issue1542: WQInfoObjectImpl: Changed implementation from String to Date.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 7554
diff changeset
11 import java.util.Date;
245
1e73d5a4859c Added new WQ info service and data structures.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
12
1e73d5a4859c Added new WQ info service and data structures.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
13 /**
1e73d5a4859c Added new WQ info service and data structures.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
14 * @author <a href="mailto:raimund.renkert@intevation.de">Raimund Renkert</a>
1e73d5a4859c Added new WQ info service and data structures.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
15 */
1e73d5a4859c Added new WQ info service and data structures.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
16 public class WQInfoObjectImpl implements WQInfoObject {
1e73d5a4859c Added new WQ info service and data structures.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
17
1e73d5a4859c Added new WQ info service and data structures.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
18 protected String name;
1e73d5a4859c Added new WQ info service and data structures.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
19
1e73d5a4859c Added new WQ info service and data structures.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
20 protected String type;
1e73d5a4859c Added new WQ info service and data structures.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
21
1e73d5a4859c Added new WQ info service and data structures.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
22 protected Double value;
1e73d5a4859c Added new WQ info service and data structures.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
23
7560
56480f609a34 issue1542: WQInfoObjectImpl: Changed implementation from String to Date.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 7554
diff changeset
24 Date startTime;
7554
19a133698eaf Add start- and stoptime to WQInfoObjects.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 6371
diff changeset
25
7560
56480f609a34 issue1542: WQInfoObjectImpl: Changed implementation from String to Date.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 7554
diff changeset
26 Date stopTime;
7554
19a133698eaf Add start- and stoptime to WQInfoObjects.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 6371
diff changeset
27
6371
19459037b3c7 GWT client: Display official lines in helper panels.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5993
diff changeset
28 protected boolean isOfficial;
19459037b3c7 GWT client: Display official lines in helper panels.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5993
diff changeset
29
245
1e73d5a4859c Added new WQ info service and data structures.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
30
1e73d5a4859c Added new WQ info service and data structures.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
31 public WQInfoObjectImpl() {
1e73d5a4859c Added new WQ info service and data structures.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
32 }
1e73d5a4859c Added new WQ info service and data structures.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
33
1e73d5a4859c Added new WQ info service and data structures.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
34
1e73d5a4859c Added new WQ info service and data structures.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
35 public WQInfoObjectImpl(
1e73d5a4859c Added new WQ info service and data structures.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
36 String name,
1e73d5a4859c Added new WQ info service and data structures.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
37 String type,
6371
19459037b3c7 GWT client: Display official lines in helper panels.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5993
diff changeset
38 Double value,
7554
19a133698eaf Add start- and stoptime to WQInfoObjects.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 6371
diff changeset
39 boolean isOfficial,
7560
56480f609a34 issue1542: WQInfoObjectImpl: Changed implementation from String to Date.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 7554
diff changeset
40 Date startTime,
56480f609a34 issue1542: WQInfoObjectImpl: Changed implementation from String to Date.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 7554
diff changeset
41 Date stopTime
6371
19459037b3c7 GWT client: Display official lines in helper panels.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5993
diff changeset
42 ) {
245
1e73d5a4859c Added new WQ info service and data structures.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
43 this.name = name;
1e73d5a4859c Added new WQ info service and data structures.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
44 this.type = type;
1e73d5a4859c Added new WQ info service and data structures.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
45 this.value = value;
6371
19459037b3c7 GWT client: Display official lines in helper panels.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5993
diff changeset
46 this.isOfficial = isOfficial;
7554
19a133698eaf Add start- and stoptime to WQInfoObjects.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 6371
diff changeset
47 this.startTime = startTime;
19a133698eaf Add start- and stoptime to WQInfoObjects.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 6371
diff changeset
48 this.stopTime = stopTime;
245
1e73d5a4859c Added new WQ info service and data structures.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
49 }
1e73d5a4859c Added new WQ info service and data structures.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
50
1e73d5a4859c Added new WQ info service and data structures.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
51
6371
19459037b3c7 GWT client: Display official lines in helper panels.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5993
diff changeset
52 @Override
7560
56480f609a34 issue1542: WQInfoObjectImpl: Changed implementation from String to Date.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 7554
diff changeset
53 public Date getStopTime() {
7554
19a133698eaf Add start- and stoptime to WQInfoObjects.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 6371
diff changeset
54 return stopTime;
19a133698eaf Add start- and stoptime to WQInfoObjects.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 6371
diff changeset
55 }
19a133698eaf Add start- and stoptime to WQInfoObjects.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 6371
diff changeset
56
19a133698eaf Add start- and stoptime to WQInfoObjects.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 6371
diff changeset
57 @Override
7560
56480f609a34 issue1542: WQInfoObjectImpl: Changed implementation from String to Date.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 7554
diff changeset
58 public Date getStartTime() {
7554
19a133698eaf Add start- and stoptime to WQInfoObjects.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 6371
diff changeset
59 return startTime;
19a133698eaf Add start- and stoptime to WQInfoObjects.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 6371
diff changeset
60 }
19a133698eaf Add start- and stoptime to WQInfoObjects.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 6371
diff changeset
61
19a133698eaf Add start- and stoptime to WQInfoObjects.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 6371
diff changeset
62 @Override
245
1e73d5a4859c Added new WQ info service and data structures.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
63 public String getName() {
1e73d5a4859c Added new WQ info service and data structures.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
64 return name;
1e73d5a4859c Added new WQ info service and data structures.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
65 }
1e73d5a4859c Added new WQ info service and data structures.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
66
1e73d5a4859c Added new WQ info service and data structures.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
67
6371
19459037b3c7 GWT client: Display official lines in helper panels.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5993
diff changeset
68 @Override
245
1e73d5a4859c Added new WQ info service and data structures.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
69 public String getType() {
1e73d5a4859c Added new WQ info service and data structures.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
70 return type;
1e73d5a4859c Added new WQ info service and data structures.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
71 }
1e73d5a4859c Added new WQ info service and data structures.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
72
1e73d5a4859c Added new WQ info service and data structures.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
73
6371
19459037b3c7 GWT client: Display official lines in helper panels.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5993
diff changeset
74 @Override
245
1e73d5a4859c Added new WQ info service and data structures.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
75 public Double getValue() {
1e73d5a4859c Added new WQ info service and data structures.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
76 return value;
1e73d5a4859c Added new WQ info service and data structures.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
77 }
6371
19459037b3c7 GWT client: Display official lines in helper panels.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5993
diff changeset
78
19459037b3c7 GWT client: Display official lines in helper panels.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5993
diff changeset
79 @Override
19459037b3c7 GWT client: Display official lines in helper panels.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5993
diff changeset
80 public boolean isOfficial() {
19459037b3c7 GWT client: Display official lines in helper panels.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5993
diff changeset
81 return isOfficial;
19459037b3c7 GWT client: Display official lines in helper panels.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5993
diff changeset
82 }
245
1e73d5a4859c Added new WQ info service and data structures.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
83 }
1e73d5a4859c Added new WQ info service and data structures.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
84 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :

http://dive4elements.wald.intevation.org