1
2
3
4
5
6
7
8 package com.buckosoft.PicMan.dom;
9
10 import org.dom4j.DocumentHelper;
11 import org.dom4j.Element;
12
13 import com.buckosoft.PicMan.business.PicManFacade;
14 import com.buckosoft.PicMan.domain.JobLogEntry;
15
16
17
18
19
20
21 public class JobLogEntryDom {
22
23
24
25
26
27
28 static public Element getDomElement(PicManFacade pmf, JobLogEntry jle) {
29 Element ele = DocumentHelper.createElement("JobLogEntry");
30 ele.addElement("type").addText(jle.getTypeAsString());
31 ele.addElement("name").addText(jle.getName());
32 ele.addElement("note").addText(jle.getNote());
33 ele.addElement("color").addText("" + jle.getColor());
34 ele.addElement("startTime").addText(jle.getStartTimeAsString());
35 ele.addElement("endTime").addText(jle.getEndTimeAsString());
36 ele.addElement("duration").addText(jle.getDurationAsString());
37 return(ele);
38 }
39
40 }