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 |
} |