1 |
package dk.thoerup.traininfoservice.banedk; |
package dk.thoerup.traininfoservice.banedk; |
2 |
|
|
3 |
|
import java.util.ArrayList; |
4 |
|
import java.util.List; |
5 |
|
|
6 |
|
import org.simpleframework.xml.ElementList; |
7 |
|
import org.simpleframework.xml.Root; |
8 |
|
|
9 |
|
@Root(name="timetable") |
10 |
public class TimetableBean { |
public class TimetableBean { |
11 |
private String station; |
|
12 |
private String arrival; |
@ElementList(inline=true) |
13 |
private String departure; |
List<TimetableEntry> entries = new ArrayList<TimetableEntry>(); |
|
private boolean current; |
|
|
private int stationId; |
|
|
boolean cancelled; |
|
|
|
|
|
public String getStation() { |
|
|
return station; |
|
|
} |
|
|
public void setStation(String station) { |
|
|
this.station = station; |
|
|
} |
|
|
|
|
|
public String getArrival() { |
|
|
return arrival; |
|
|
} |
|
|
public void setArrival(String arrival) { |
|
|
this.arrival = arrival; |
|
|
} |
|
|
|
|
|
public String getDeparture() { |
|
|
return departure; |
|
|
} |
|
|
public void setDeparture(String departure) { |
|
|
this.departure = departure; |
|
|
} |
|
|
|
|
|
public boolean isCurrent() { |
|
|
return current; |
|
|
} |
|
|
public void setCurrent(boolean current) { |
|
|
this.current = current; |
|
|
} |
|
|
public int getStationId() { |
|
|
return stationId; |
|
|
} |
|
|
public void setStationId(int stationId) { |
|
|
this.stationId = stationId; |
|
|
} |
|
|
|
|
|
public boolean isCancelled() { |
|
|
return cancelled; |
|
|
} |
|
|
public void setCancelled(boolean cancelled) { |
|
|
this.cancelled = cancelled; |
|
|
} |
|
14 |
|
|
15 |
|
|
16 |
} |
} |