5 |
import java.util.List; |
import java.util.List; |
6 |
import java.util.Set; |
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 { |
public class DepartureBean { |
14 |
|
|
15 |
|
@Attribute |
16 |
|
boolean arrival; |
17 |
|
|
18 |
|
@Attribute(name="station") |
19 |
String stationName; |
String stationName; |
20 |
|
|
21 |
Set<String> notifications = new HashSet<String>(); |
|
22 |
|
|
23 |
|
@ElementList(inline=true, name="train") |
24 |
List<DepartureEntry> departureEntries = new ArrayList<DepartureEntry>(); |
List<DepartureEntry> departureEntries = new ArrayList<DepartureEntry>(); |
25 |
|
|
26 |
|
@ElementList(inline=true) |
27 |
|
Set<String> notifications = new HashSet<String>(); |
28 |
|
|
29 |
public Set<String> getNotifications() { |
public Set<String> getNotifications() { |
30 |
return notifications; |
return notifications; |
31 |
} |
} |