1 |
package dk.thoerup.traininfoservice.banedk; |
2 |
|
3 |
import java.util.ArrayList; |
4 |
import java.util.HashSet; |
5 |
import java.util.List; |
6 |
import java.util.Set; |
7 |
|
8 |
import org.simpleframework.xml.Attribute; |
9 |
import org.simpleframework.xml.ElementList; |
10 |
import org.simpleframework.xml.Root; |
11 |
|
12 |
@Root(name="departureinfo") |
13 |
public class DepartureBean { |
14 |
|
15 |
@Attribute |
16 |
boolean arrival; |
17 |
|
18 |
@Attribute(name="station") |
19 |
String stationName; |
20 |
|
21 |
|
22 |
|
23 |
@ElementList(inline=true, name="train") |
24 |
List<DepartureEntry> departureEntries = new ArrayList<DepartureEntry>(); |
25 |
|
26 |
@ElementList(inline=true) |
27 |
Set<String> notifications = new HashSet<String>(); |
28 |
|
29 |
public Set<String> getNotifications() { |
30 |
return notifications; |
31 |
} |
32 |
|
33 |
public List<DepartureEntry> getEntries() { |
34 |
return departureEntries; |
35 |
} |
36 |
|
37 |
public String getStationName() { |
38 |
return stationName; |
39 |
} |
40 |
|
41 |
} |