Added participants field to xml generator
#story[778]
This commit is contained in:
@@ -75,7 +75,18 @@ public class RaceData {
|
|||||||
startTimeElement.setAttribute("Postpone", "false");
|
startTimeElement.setAttribute("Postpone", "false");
|
||||||
raceElement.appendChild(startTimeElement);
|
raceElement.appendChild(startTimeElement);
|
||||||
|
|
||||||
//PARTICIPANTS
|
|
||||||
|
Element participantsElement = doc.createElement("Participants");
|
||||||
|
|
||||||
|
for (BoatInRace boat : participants) {
|
||||||
|
Element yachtElement = doc.createElement("Yacht");
|
||||||
|
yachtElement.setAttribute("SourceID", boat.getSourceID() + "");
|
||||||
|
participantsElement.appendChild(yachtElement);
|
||||||
|
}
|
||||||
|
|
||||||
|
raceElement.appendChild(participantsElement);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Element courseElement = doc.createElement("Course");
|
Element courseElement = doc.createElement("Course");
|
||||||
Element compoundMarkSeqElement = doc.createElement("CompoundMarkSequence");
|
Element compoundMarkSeqElement = doc.createElement("CompoundMarkSequence");
|
||||||
|
|||||||
@@ -42,7 +42,9 @@ public class Event {
|
|||||||
public void sendRaceData() {
|
public void sendRaceData() {
|
||||||
RaceData raceData = new RaceData(raceDataSource);
|
RaceData raceData = new RaceData(raceDataSource);
|
||||||
raceData.createXML();
|
raceData.createXML();
|
||||||
|
}
|
||||||
|
|
||||||
|
public void sendBoatData() {
|
||||||
|
|
||||||
|
|
||||||
List<BoatInRace> boatData = raceDataSource.getBoats();
|
List<BoatInRace> boatData = raceDataSource.getBoats();
|
||||||
@@ -136,15 +138,6 @@ public class Event {
|
|||||||
} catch (Exception e) {}
|
} catch (Exception e) {}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
public void sendBoatData() {
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user