Subversion Repositories svn.mios

Rev

Rev 709 | Rev 722 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 709 Rev 721
Line 1... Line 1...
1
package org.midibox.mios.xml;
1
package org.midibox.mios.xml;
2
2
3
public class HexFileUploadXML {
3
import org.midibox.mios.HexFileUpload;
-
 
4
import org.w3c.dom.Node;
4
5
-
 
6
public class HexFileUploadXML extends MIOSSysexSendReceiveXML {
-
 
7
-
 
8
    protected HexFileUpload hexFileUpload;
-
 
9
-
 
10
    protected String waitForUploadRequestAttr = "waitForUploadRequest";
-
 
11
-
 
12
    protected String uploadModeAttr = "uploadMode";
-
 
13
-
 
14
    protected String delayTimeAttr = "delayTime";
-
 
15
-
 
16
    public HexFileUploadXML(HexFileUpload hexFileUpload, String rootElementTag) {
-
 
17
-
 
18
        super(hexFileUpload, rootElementTag);
-
 
19
-
 
20
        this.hexFileUpload = hexFileUpload;
-
 
21
    }
-
 
22
-
 
23
    public void saveXML(Node node) {
-
 
24
-
 
25
        super.saveXML(node);
-
 
26
-
 
27
        rootElement.setAttribute(waitForUploadRequestAttr, hexFileUpload
-
 
28
                .isWaitForUploadRequest() ? "true" : "false");
-
 
29
-
 
30
        rootElement.setAttribute(uploadModeAttr, ""
-
 
31
                + hexFileUpload.getUploadMode());
-
 
32
-
 
33
        rootElement.setAttribute(delayTimeAttr, ""
-
 
34
                + hexFileUpload.getDelayTime());
-
 
35
    }
5
}
36
}