package dk.thoerup.traininfoservice.banedk; import java.util.ArrayList; import java.util.HashSet; import java.util.List; import java.util.Set; import org.simpleframework.xml.Attribute; import org.simpleframework.xml.ElementList; import org.simpleframework.xml.Root; @Root(name="departureinfo") public class DepartureBean { @Attribute boolean arrival; @Attribute(name="station") String stationName; @ElementList(inline=true, name="train") List departureEntries = new ArrayList(); @ElementList(inline=true) Set notifications = new HashSet(); public Set getNotifications() { return notifications; } public List getEntries() { return departureEntries; } public String getStationName() { return stationName; } }