/[projects]/android/TrainInfoService/src/dk/thoerup/traininfoservice/banedk/TimetableEntry.java
ViewVC logotype

Contents of /android/TrainInfoService/src/dk/thoerup/traininfoservice/banedk/TimetableEntry.java

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1060 - (show annotations) (download)
Thu Sep 16 13:32:10 2010 UTC (13 years, 8 months ago) by torben
File size: 1198 byte(s)
Experimental: use Simple (simple.sourceforge.net) for XML serialization
1 package dk.thoerup.traininfoservice.banedk;
2
3 import org.simpleframework.xml.Attribute;
4 import org.simpleframework.xml.Element;
5 import org.simpleframework.xml.Root;
6
7 @Root(name="entry")
8 public class TimetableEntry {
9 @Element
10 private String station;
11
12 @Element
13 private String arrival;
14
15 @Element
16 private String departure;
17
18 @Attribute
19 private boolean current;
20
21 @Element
22 private int stationId;
23 boolean cancelled;
24
25 public String getStation() {
26 return station;
27 }
28 public void setStation(String station) {
29 this.station = station;
30 }
31
32 public String getArrival() {
33 return arrival;
34 }
35 public void setArrival(String arrival) {
36 this.arrival = arrival;
37 }
38
39 public String getDeparture() {
40 return departure;
41 }
42 public void setDeparture(String departure) {
43 this.departure = departure;
44 }
45
46 public boolean isCurrent() {
47 return current;
48 }
49 public void setCurrent(boolean current) {
50 this.current = current;
51 }
52 public int getStationId() {
53 return stationId;
54 }
55 public void setStationId(int stationId) {
56 this.stationId = stationId;
57 }
58
59 public boolean isCancelled() {
60 return cancelled;
61 }
62 public void setCancelled(boolean cancelled) {
63 this.cancelled = cancelled;
64 }
65 }

  ViewVC Help
Powered by ViewVC 1.1.20