Advertisement
Guest User

Untitled

a guest
Jun 15th, 2018
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 33.59 KB | None | 0 0
  1. Element eventRegister = doc.createElement("EventRegister");
  2. rootElement.appendChild(eventRegister);
  3. for(Event e : MainApp.getExpo().getEventsRegister().getEventsList()) {
  4. Element event = doc.createElement("Event");
  5. eventRegister.appendChild(event);
  6. Element title = doc.createElement("Title");
  7. title.appendChild(doc.createTextNode(e.getTitle()));
  8. event.appendChild(title);
  9. Element description = doc.createElement("Description");
  10. description.appendChild(doc.createTextNode(e.getDescription()));
  11. event.appendChild(description);
  12. Element date = doc.createElement("Date");
  13. date.appendChild(doc.createTextNode(e.getDate()));
  14. event.appendChild(date);
  15. Element location = doc.createElement("Location");
  16. location.appendChild(doc.createTextNode(e.getLocation()));
  17. event.appendChild(location);
  18. Element appPeriod = doc.createElement("Application Submission Period");
  19. event.appendChild(appPeriod);
  20. Element applicationSubmissionBegin = doc.createElement("Application Submission Begin");
  21. applicationSubmissionBegin.appendChild(doc.createTextNode(e.getApplicationSubmissionPeriod().getApplicationSubmissionBegin()));
  22. appPeriod.appendChild(applicationSubmissionBegin);
  23. Element applicationSubmissionEnd = doc.createElement("Application Submission End");
  24. applicationSubmissionEnd.appendChild(doc.createTextNode(e.getApplicationSubmissionPeriod().getApplicationSubmissionEnd()));
  25. appPeriod.appendChild(applicationSubmissionEnd);
  26. Element applicationRegister = doc.createElement("Application Register");
  27. event.appendChild(applicationRegister);
  28. Element reviewList = doc.createElement("Review List");
  29. applicationRegister.appendChild(reviewList);
  30. for(Application ap : e.getApplicationRegister().getReviewList()) {
  31. Element application = doc.createElement("Application");
  32. reviewList.appendChild(application);
  33. Element tradename = doc.createElement("Trade Name");
  34. tradename.appendChild(doc.createTextNode(ap.getTradeName()));
  35. application.appendChild(tradename);
  36. Element vatnumber = doc.createElement("Vat Number");
  37. vatnumber.appendChild(doc.createTextNode(Integer.toString(ap.getVATNumber())));
  38. application.appendChild(vatnumber);
  39. Element phonenumber = doc.createElement("Phone Number");
  40. phonenumber.appendChild(doc.createTextNode(Integer.toString(ap.getPhoneNumber())));
  41. application.appendChild(phonenumber);
  42. Element standarea = doc.createElement("Stand Area");
  43. standarea.appendChild(doc.createTextNode(Double.toString(ap.getStandArea())));
  44. application.appendChild(standarea);
  45. Element productsdisplayed = doc.createElement("Products Displayed");
  46. productsdisplayed.appendChild(doc.createTextNode(ap.getProductsDisplayed().toString()));
  47. application.appendChild(productsdisplayed);
  48. Element numberinvitations = doc.createElement("Number of Invitations");
  49. numberinvitations.appendChild(doc.createTextNode(Integer.toString(ap.getNumberInvitations())));
  50. application.appendChild(numberinvitations);
  51. Element applicationtopics = doc.createElement("Application Topics");
  52. applicationtopics.appendChild(doc.createTextNode(ap.getApplicationTopics().toString()));
  53. application.appendChild(applicationtopics);
  54. Element workshoplist = doc.createElement("Workshop List");
  55. application.appendChild(workshoplist);
  56. Element waitinglist = doc.createElement("Waiting List");
  57. workshoplist.appendChild(waitinglist);
  58. for(Workshop w : ap.getWorkshopsList().getWaitingList()) {
  59. Element workshop = doc.createElement("Workshop");
  60. waitinglist.appendChild(workshop);
  61. Element workshopdescription = doc.createElement("Workshop Description");
  62. workshopdescription.appendChild(doc.createTextNode(w.getDescription()));
  63. workshop.appendChild(workshopdescription);
  64. Element workshopduration = doc.createElement("Workshop Duration");
  65. workshopduration.appendChild(doc.createTextNode(w.getDuration()));
  66. workshop.appendChild(workshopduration);
  67. Element workshopequipment = doc.createElement("Workshop Equipment");
  68. workshopequipment.appendChild(doc.createTextNode(w.getEquipment().toString()));
  69. }
  70. Element acceptedlist = doc.createElement("Accepted List");
  71. workshoplist.appendChild(acceptedlist);
  72. for(Workshop w : ap.getWorkshopsList().getAcceptedList()) {
  73. Element workshop = doc.createElement("Workshop");
  74. waitinglist.appendChild(workshop);
  75. Element workshopdescription = doc.createElement("Workshop Description");
  76. workshopdescription.appendChild(doc.createTextNode(w.getDescription()));
  77. workshop.appendChild(workshopdescription);
  78. Element workshopduration = doc.createElement("Workshop Duration");
  79. workshopduration.appendChild(doc.createTextNode(w.getDuration()));
  80. workshop.appendChild(workshopduration);
  81. Element workshopequipment = doc.createElement("Workshop Equipment");
  82. workshopequipment.appendChild(doc.createTextNode(w.getEquipment().toString()));
  83. }
  84. Element declinedlist = doc.createElement("Declined List");
  85. workshoplist.appendChild(declinedlist);
  86. for(Workshop w : ap.getWorkshopsList().getDeclinedList()) {
  87. Element workshop = doc.createElement("Workshop");
  88. waitinglist.appendChild(workshop);
  89. Element workshopdescription = doc.createElement("Workshop Description");
  90. workshopdescription.appendChild(doc.createTextNode(w.getDescription()));
  91. workshop.appendChild(workshopdescription);
  92. Element workshopduration = doc.createElement("Workshop Duration");
  93. workshopduration.appendChild(doc.createTextNode(w.getDuration()));
  94. workshop.appendChild(workshopduration);
  95. Element workshopequipment = doc.createElement("Workshop Equipment");
  96. workshopequipment.appendChild(doc.createTextNode(w.getEquipment().toString()));
  97. }
  98. Element stand = doc.createElement("Stand");
  99. application.appendChild(stand);
  100. Element standDescription = doc.createElement("Description");
  101. standDescription.appendChild(doc.createTextNode(ap.getStand().getDescription()));
  102. stand.appendChild(standDescription);
  103. Element area = doc.createElement("Area");
  104. area.appendChild(doc.createTextNode(Double.toString(ap.getStand().getArea())));
  105. stand.appendChild(area);
  106. Element applicationrepresentative = doc.createElement("Application Representative");
  107. application.appendChild(applicationrepresentative);
  108. Element user = doc.createElement("User");
  109. applicationrepresentative.appendChild(user);
  110. Element name = doc.createElement("Name");
  111. name.appendChild(doc.createTextNode(ap.getRepresentative().getName()));
  112. user.appendChild(name);
  113. Element email = doc.createElement("Email");
  114. email.appendChild(doc.createTextNode(ap.getRepresentative().getEmail()));
  115. user.appendChild(email);
  116. Element username = doc.createElement("Username");
  117. username.appendChild(doc.createTextNode(ap.getRepresentative().getUsername()));
  118. user.appendChild(username);
  119. Element password = doc.createElement("Password");
  120. password.appendChild(doc.createTextNode(Arrays.toString(ap.getRepresentative().getPassword())));
  121. user.appendChild(password);
  122. }
  123. Element acceptedList = doc.createElement("Accepted List");
  124. applicationRegister.appendChild(acceptedList);
  125. for(Application ap : e.getApplicationRegister().getAcceptedList()) {
  126. Element application = doc.createElement("Application");
  127. reviewList.appendChild(application);
  128. Element tradename = doc.createElement("Trade Name");
  129. tradename.appendChild(doc.createTextNode(ap.getTradeName()));
  130. application.appendChild(tradename);
  131. Element vatnumber = doc.createElement("Vat Number");
  132. vatnumber.appendChild(doc.createTextNode(Integer.toString(ap.getVATNumber())));
  133. application.appendChild(vatnumber);
  134. Element phonenumber = doc.createElement("Phone Number");
  135. phonenumber.appendChild(doc.createTextNode(Integer.toString(ap.getPhoneNumber())));
  136. application.appendChild(phonenumber);
  137. Element standarea = doc.createElement("Stand Area");
  138. standarea.appendChild(doc.createTextNode(Double.toString(ap.getStandArea())));
  139. application.appendChild(standarea);
  140. Element productsdisplayed = doc.createElement("Products Displayed");
  141. productsdisplayed.appendChild(doc.createTextNode(ap.getProductsDisplayed().toString()));
  142. application.appendChild(productsdisplayed);
  143. Element numberinvitations = doc.createElement("Number of Invitations");
  144. numberinvitations.appendChild(doc.createTextNode(Integer.toString(ap.getNumberInvitations())));
  145. application.appendChild(numberinvitations);
  146. Element applicationtopics = doc.createElement("Application Topics");
  147. applicationtopics.appendChild(doc.createTextNode(ap.getApplicationTopics().toString()));
  148. application.appendChild(applicationtopics);
  149. Element workshoplist = doc.createElement("Workshop List");
  150. application.appendChild(workshoplist);
  151. Element waitinglist = doc.createElement("Waiting List");
  152. workshoplist.appendChild(waitinglist);
  153. for(Workshop w : ap.getWorkshopsList().getWaitingList()) {
  154. Element workshop = doc.createElement("Workshop");
  155. waitinglist.appendChild(workshop);
  156. Element workshopdescription = doc.createElement("Workshop Description");
  157. workshopdescription.appendChild(doc.createTextNode(w.getDescription()));
  158. workshop.appendChild(workshopdescription);
  159. Element workshopduration = doc.createElement("Workshop Duration");
  160. workshopduration.appendChild(doc.createTextNode(w.getDuration()));
  161. workshop.appendChild(workshopduration);
  162. Element workshopequipment = doc.createElement("Workshop Equipment");
  163. workshopequipment.appendChild(doc.createTextNode(w.getEquipment().toString()));
  164. }
  165. Element acceptedlist = doc.createElement("Accepted List");
  166. workshoplist.appendChild(acceptedlist);
  167. for(Workshop w : ap.getWorkshopsList().getAcceptedList()) {
  168. Element workshop = doc.createElement("Workshop");
  169. waitinglist.appendChild(workshop);
  170. Element workshopdescription = doc.createElement("Workshop Description");
  171. workshopdescription.appendChild(doc.createTextNode(w.getDescription()));
  172. workshop.appendChild(workshopdescription);
  173. Element workshopduration = doc.createElement("Workshop Duration");
  174. workshopduration.appendChild(doc.createTextNode(w.getDuration()));
  175. workshop.appendChild(workshopduration);
  176. Element workshopequipment = doc.createElement("Workshop Equipment");
  177. workshopequipment.appendChild(doc.createTextNode(w.getEquipment().toString()));
  178. }
  179. Element declinedlist = doc.createElement("Declined List");
  180. workshoplist.appendChild(declinedlist);
  181. for(Workshop w : ap.getWorkshopsList().getDeclinedList()) {
  182. Element workshop = doc.createElement("Workshop");
  183. waitinglist.appendChild(workshop);
  184. Element workshopdescription = doc.createElement("Workshop Description");
  185. workshopdescription.appendChild(doc.createTextNode(w.getDescription()));
  186. workshop.appendChild(workshopdescription);
  187. Element workshopduration = doc.createElement("Workshop Duration");
  188. workshopduration.appendChild(doc.createTextNode(w.getDuration()));
  189. workshop.appendChild(workshopduration);
  190. Element workshopequipment = doc.createElement("Workshop Equipment");
  191. workshopequipment.appendChild(doc.createTextNode(w.getEquipment().toString()));
  192. }
  193. Element stand = doc.createElement("Stand");
  194. application.appendChild(stand);
  195. Element standDescription = doc.createElement("Description");
  196. standDescription.appendChild(doc.createTextNode(ap.getStand().getDescription()));
  197. stand.appendChild(standDescription);
  198. Element area = doc.createElement("Area");
  199. area.appendChild(doc.createTextNode(Double.toString(ap.getStand().getArea())));
  200. stand.appendChild(area);
  201. Element applicationrepresentative = doc.createElement("Application Representative");
  202. application.appendChild(applicationrepresentative);
  203. Element user = doc.createElement("User");
  204. applicationrepresentative.appendChild(user);
  205. Element name = doc.createElement("Name");
  206. name.appendChild(doc.createTextNode(ap.getRepresentative().getName()));
  207. user.appendChild(name);
  208. Element email = doc.createElement("Email");
  209. email.appendChild(doc.createTextNode(ap.getRepresentative().getEmail()));
  210. user.appendChild(email);
  211. Element username = doc.createElement("Username");
  212. username.appendChild(doc.createTextNode(ap.getRepresentative().getUsername()));
  213. user.appendChild(username);
  214. Element password = doc.createElement("Password");
  215. password.appendChild(doc.createTextNode(Arrays.toString(ap.getRepresentative().getPassword())));
  216. user.appendChild(password);
  217. }
  218. Element declinedList = doc.createElement("Declined List");
  219. applicationRegister.appendChild(declinedList);
  220. for(Application ap : e.getApplicationRegister().getDeclinedList()) {
  221. Element application = doc.createElement("Application");
  222. reviewList.appendChild(application);
  223. Element tradename = doc.createElement("Trade Name");
  224. tradename.appendChild(doc.createTextNode(ap.getTradeName()));
  225. application.appendChild(tradename);
  226. Element vatnumber = doc.createElement("Vat Number");
  227. vatnumber.appendChild(doc.createTextNode(Integer.toString(ap.getVATNumber())));
  228. application.appendChild(vatnumber);
  229. Element phonenumber = doc.createElement("Phone Number");
  230. phonenumber.appendChild(doc.createTextNode(Integer.toString(ap.getPhoneNumber())));
  231. application.appendChild(phonenumber);
  232. Element standarea = doc.createElement("Stand Area");
  233. standarea.appendChild(doc.createTextNode(Double.toString(ap.getStandArea())));
  234. application.appendChild(standarea);
  235. Element productsdisplayed = doc.createElement("Products Displayed");
  236. productsdisplayed.appendChild(doc.createTextNode(ap.getProductsDisplayed().toString()));
  237. application.appendChild(productsdisplayed);
  238. Element numberinvitations = doc.createElement("Number of Invitations");
  239. numberinvitations.appendChild(doc.createTextNode(Integer.toString(ap.getNumberInvitations())));
  240. application.appendChild(numberinvitations);
  241. Element applicationtopics = doc.createElement("Application Topics");
  242. applicationtopics.appendChild(doc.createTextNode(ap.getApplicationTopics().toString()));
  243. application.appendChild(applicationtopics);
  244. Element workshoplist = doc.createElement("Workshop List");
  245. application.appendChild(workshoplist);
  246. Element waitinglist = doc.createElement("Waiting List");
  247. workshoplist.appendChild(waitinglist);
  248. for(Workshop w : ap.getWorkshopsList().getWaitingList()) {
  249. Element workshop = doc.createElement("Workshop");
  250. waitinglist.appendChild(workshop);
  251. Element workshopdescription = doc.createElement("Workshop Description");
  252. workshopdescription.appendChild(doc.createTextNode(w.getDescription()));
  253. workshop.appendChild(workshopdescription);
  254. Element workshopduration = doc.createElement("Workshop Duration");
  255. workshopduration.appendChild(doc.createTextNode(w.getDuration()));
  256. workshop.appendChild(workshopduration);
  257. Element workshopequipment = doc.createElement("Workshop Equipment");
  258. workshopequipment.appendChild(doc.createTextNode(w.getEquipment().toString()));
  259. }
  260. Element acceptedlist = doc.createElement("Accepted List");
  261. workshoplist.appendChild(acceptedlist);
  262. for(Workshop w : ap.getWorkshopsList().getAcceptedList()) {
  263. Element workshop = doc.createElement("Workshop");
  264. waitinglist.appendChild(workshop);
  265. Element workshopdescription = doc.createElement("Workshop Description");
  266. workshopdescription.appendChild(doc.createTextNode(w.getDescription()));
  267. workshop.appendChild(workshopdescription);
  268. Element workshopduration = doc.createElement("Workshop Duration");
  269. workshopduration.appendChild(doc.createTextNode(w.getDuration()));
  270. workshop.appendChild(workshopduration);
  271. Element workshopequipment = doc.createElement("Workshop Equipment");
  272. workshopequipment.appendChild(doc.createTextNode(w.getEquipment().toString()));
  273. }
  274. Element declinedlist = doc.createElement("Declined List");
  275. workshoplist.appendChild(declinedlist);
  276. for(Workshop w : ap.getWorkshopsList().getDeclinedList()) {
  277. Element workshop = doc.createElement("Workshop");
  278. waitinglist.appendChild(workshop);
  279. Element workshopdescription = doc.createElement("Workshop Description");
  280. workshopdescription.appendChild(doc.createTextNode(w.getDescription()));
  281. workshop.appendChild(workshopdescription);
  282. Element workshopduration = doc.createElement("Workshop Duration");
  283. workshopduration.appendChild(doc.createTextNode(w.getDuration()));
  284. workshop.appendChild(workshopduration);
  285. Element workshopequipment = doc.createElement("Workshop Equipment");
  286. workshopequipment.appendChild(doc.createTextNode(w.getEquipment().toString()));
  287. }
  288. Element stand = doc.createElement("Stand");
  289. application.appendChild(stand);
  290. Element standDescription = doc.createElement("Description");
  291. standDescription.appendChild(doc.createTextNode(ap.getStand().getDescription()));
  292. stand.appendChild(standDescription);
  293. Element area = doc.createElement("Area");
  294. area.appendChild(doc.createTextNode(Double.toString(ap.getStand().getArea())));
  295. stand.appendChild(area);
  296. Element applicationrepresentative = doc.createElement("Application Representative");
  297. application.appendChild(applicationrepresentative);
  298. Element user = doc.createElement("User");
  299. applicationrepresentative.appendChild(user);
  300. Element name = doc.createElement("Name");
  301. name.appendChild(doc.createTextNode(ap.getRepresentative().getName()));
  302. user.appendChild(name);
  303. Element email = doc.createElement("Email");
  304. email.appendChild(doc.createTextNode(ap.getRepresentative().getEmail()));
  305. user.appendChild(email);
  306. Element username = doc.createElement("Username");
  307. username.appendChild(doc.createTextNode(ap.getRepresentative().getUsername()));
  308. user.appendChild(username);
  309. Element password = doc.createElement("Password");
  310. password.appendChild(doc.createTextNode(Arrays.toString(ap.getRepresentative().getPassword())));
  311. user.appendChild(password);
  312. }
  313. Element pendingList = doc.createElement("Pending List");
  314. applicationRegister.appendChild(pendingList);
  315. for(Application ap : e.getApplicationRegister().getPendingList()) {
  316. Element application = doc.createElement("Application");
  317. reviewList.appendChild(application);
  318. Element tradename = doc.createElement("Trade Name");
  319. tradename.appendChild(doc.createTextNode(ap.getTradeName()));
  320. application.appendChild(tradename);
  321. Element vatnumber = doc.createElement("Vat Number");
  322. vatnumber.appendChild(doc.createTextNode(Integer.toString(ap.getVATNumber())));
  323. application.appendChild(vatnumber);
  324. Element phonenumber = doc.createElement("Phone Number");
  325. phonenumber.appendChild(doc.createTextNode(Integer.toString(ap.getPhoneNumber())));
  326. application.appendChild(phonenumber);
  327. Element standarea = doc.createElement("Stand Area");
  328. standarea.appendChild(doc.createTextNode(Double.toString(ap.getStandArea())));
  329. application.appendChild(standarea);
  330. Element productsdisplayed = doc.createElement("Products Displayed");
  331. productsdisplayed.appendChild(doc.createTextNode(ap.getProductsDisplayed().toString()));
  332. application.appendChild(productsdisplayed);
  333. Element numberinvitations = doc.createElement("Number of Invitations");
  334. numberinvitations.appendChild(doc.createTextNode(Integer.toString(ap.getNumberInvitations())));
  335. application.appendChild(numberinvitations);
  336. Element applicationtopics = doc.createElement("Application Topics");
  337. applicationtopics.appendChild(doc.createTextNode(ap.getApplicationTopics().toString()));
  338. application.appendChild(applicationtopics);
  339. Element workshoplist = doc.createElement("Workshop List");
  340. application.appendChild(workshoplist);
  341. Element waitinglist = doc.createElement("Waiting List");
  342. workshoplist.appendChild(waitinglist);
  343. for(Workshop w : ap.getWorkshopsList().getWaitingList()) {
  344. Element workshop = doc.createElement("Workshop");
  345. waitinglist.appendChild(workshop);
  346. Element workshopdescription = doc.createElement("Workshop Description");
  347. workshopdescription.appendChild(doc.createTextNode(w.getDescription()));
  348. workshop.appendChild(workshopdescription);
  349. Element workshopduration = doc.createElement("Workshop Duration");
  350. workshopduration.appendChild(doc.createTextNode(w.getDuration()));
  351. workshop.appendChild(workshopduration);
  352. Element workshopequipment = doc.createElement("Workshop Equipment");
  353. workshopequipment.appendChild(doc.createTextNode(w.getEquipment().toString()));
  354. }
  355. Element acceptedlist = doc.createElement("Accepted List");
  356. workshoplist.appendChild(acceptedlist);
  357. for(Workshop w : ap.getWorkshopsList().getAcceptedList()) {
  358. Element workshop = doc.createElement("Workshop");
  359. waitinglist.appendChild(workshop);
  360. Element workshopdescription = doc.createElement("Workshop Description");
  361. workshopdescription.appendChild(doc.createTextNode(w.getDescription()));
  362. workshop.appendChild(workshopdescription);
  363. Element workshopduration = doc.createElement("Workshop Duration");
  364. workshopduration.appendChild(doc.createTextNode(w.getDuration()));
  365. workshop.appendChild(workshopduration);
  366. Element workshopequipment = doc.createElement("Workshop Equipment");
  367. workshopequipment.appendChild(doc.createTextNode(w.getEquipment().toString()));
  368. }
  369. Element declinedlist = doc.createElement("Declined List");
  370. workshoplist.appendChild(declinedlist);
  371. for(Workshop w : ap.getWorkshopsList().getDeclinedList()) {
  372. Element workshop = doc.createElement("Workshop");
  373. waitinglist.appendChild(workshop);
  374. Element workshopdescription = doc.createElement("Workshop Description");
  375. workshopdescription.appendChild(doc.createTextNode(w.getDescription()));
  376. workshop.appendChild(workshopdescription);
  377. Element workshopduration = doc.createElement("Workshop Duration");
  378. workshopduration.appendChild(doc.createTextNode(w.getDuration()));
  379. workshop.appendChild(workshopduration);
  380. Element workshopequipment = doc.createElement("Workshop Equipment");
  381. workshopequipment.appendChild(doc.createTextNode(w.getEquipment().toString()));
  382. }
  383. Element stand = doc.createElement("Stand");
  384. application.appendChild(stand);
  385. Element standDescription = doc.createElement("Description");
  386. standDescription.appendChild(doc.createTextNode(ap.getStand().getDescription()));
  387. stand.appendChild(standDescription);
  388. Element area = doc.createElement("Area");
  389. area.appendChild(doc.createTextNode(Double.toString(ap.getStand().getArea())));
  390. stand.appendChild(area);
  391. Element applicationrepresentative = doc.createElement("Application Representative");
  392. application.appendChild(applicationrepresentative);
  393. Element user = doc.createElement("User");
  394. applicationrepresentative.appendChild(user);
  395. Element name = doc.createElement("Name");
  396. name.appendChild(doc.createTextNode(ap.getRepresentative().getName()));
  397. user.appendChild(name);
  398. Element email = doc.createElement("Email");
  399. email.appendChild(doc.createTextNode(ap.getRepresentative().getEmail()));
  400. user.appendChild(email);
  401. Element username = doc.createElement("Username");
  402. username.appendChild(doc.createTextNode(ap.getRepresentative().getUsername()));
  403. user.appendChild(username);
  404. Element password = doc.createElement("Password");
  405. password.appendChild(doc.createTextNode(Arrays.toString(ap.getRepresentative().getPassword())));
  406. user.appendChild(password);
  407. }
  408. Element standRegister = doc.createElement("Stand Register");
  409. event.appendChild(standRegister);
  410. for (Stand s : e.getStandsRegister().getStandsRegister()) {
  411. Element stand = doc.createElement("Stand");
  412. standRegister.appendChild(stand);
  413. Element standDescription = doc.createElement("Description");
  414. standDescription.appendChild(doc.createTextNode(s.getDescription()));
  415. stand.appendChild(standDescription);
  416. Element area = doc.createElement("Area");
  417. area.appendChild(doc.createTextNode(Double.toString(s.getArea())));
  418. stand.appendChild(area);
  419. }
  420. Element userRegisterEvent = doc.createElement("UserRegister");
  421. event.appendChild(userRegisterEvent);
  422. for(User u : e.getUserRegister().getUserRegister()) {
  423. Element user = doc.createElement("User");
  424. userRegisterEvent.appendChild(user);
  425. Element name = doc.createElement("Name");
  426. name.appendChild(doc.createTextNode(u.getName()));
  427. userRegisterEvent.appendChild(name);
  428. Element email = doc.createElement("Email");
  429. email.appendChild(doc.createTextNode(u.getEmail()));
  430. userRegisterEvent.appendChild(email);
  431. Element username = doc.createElement("Username");
  432. username.appendChild(doc.createTextNode(u.getUsername()));
  433. userRegisterEvent.appendChild(username);
  434. Element password = doc.createElement("Password");
  435. password.appendChild(doc.createTextNode(Arrays.toString(u.getPassword())));
  436. userRegisterEvent.appendChild(password);
  437. }
  438. Element organizersList = doc.createElement("Organizer List");
  439. event.appendChild(organizersList);
  440. for(User or : e.getOrganizersList()) {
  441. Element user = doc.createElement("User");
  442. organizersList.appendChild(user);
  443. Element name = doc.createElement("Name");
  444. name.appendChild(doc.createTextNode(or.getName()));
  445. organizersList.appendChild(name);
  446. Element email = doc.createElement("Email");
  447. email.appendChild(doc.createTextNode(or.getEmail()));
  448. organizersList.appendChild(email);
  449. Element username = doc.createElement("Username");
  450. username.appendChild(doc.createTextNode(or.getUsername()));
  451. organizersList.appendChild(username);
  452. Element password = doc.createElement("Password");
  453. password.appendChild(doc.createTextNode(Arrays.toString(or.getPassword())));
  454. organizersList.appendChild(password);
  455. }
  456. Element staffList = doc.createElement("Staff List");
  457. event.appendChild(staffList);
  458. for(User stf : e.getStaffList()) {
  459. Element user = doc.createElement("User");
  460. staffList.appendChild(user);
  461. Element name = doc.createElement("Name");
  462. name.appendChild(doc.createTextNode(stf.getName()));
  463. staffList.appendChild(name);
  464. Element email = doc.createElement("Email");
  465. email.appendChild(doc.createTextNode(stf.getEmail()));
  466. staffList.appendChild(email);
  467. Element username = doc.createElement("Username");
  468. username.appendChild(doc.createTextNode(stf.getUsername()));
  469. staffList.appendChild(username);
  470. Element password = doc.createElement("Password");
  471. password.appendChild(doc.createTextNode(Arrays.toString(stf.getPassword())));
  472. staffList.appendChild(password);
  473. }
  474. Element eventManager = doc.createElement("Event Manager");
  475. event.appendChild(eventManager);
  476. Element user = doc.createElement("User");
  477. eventManager.appendChild(user);
  478. Element name = doc.createElement("Name");
  479. name.appendChild(doc.createTextNode(e.getEventManager().getName()));
  480. eventManager.appendChild(name);
  481. Element email = doc.createElement("Email");
  482. email.appendChild(doc.createTextNode(e.getEventManager().getEmail()));
  483. eventManager.appendChild(email);
  484. Element username = doc.createElement("Username");
  485. username.appendChild(doc.createTextNode(e.getEventManager().getUsername()));
  486. eventManager.appendChild(username);
  487. Element password = doc.createElement("Password");
  488. password.appendChild(doc.createTextNode(Arrays.toString(e.getEventManager().getPassword())));
  489. eventManager.appendChild(password);
  490. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement