Subversion Repositories svn.mios

Rev

Rev 722 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 722 Rev 727
Line 4... Line 4...
4
import org.midibox.mios.HexFileUploadDevice;
4
import org.midibox.mios.HexFileUploadDevice;
-
 
5
import org.w3c.dom.Element;
5
import org.w3c.dom.Node;
6
import org.w3c.dom.Node;
6
7
7
public class HexFileUploadDeviceXML extends VirtualMidiDeviceXML {
8
public class HexFileUploadDeviceXML extends VirtualMidiDeviceXML {
8
9
9
    protected HexFileUploadDevice hexFileUploadDevice;
10
    protected HexFileUploadDevice hexFileUploadDevice;
Line 14... Line 15...
14
            String rootElementTag) {
15
            String rootElementTag) {
15
16
16
        super(hexFileUploadDevice, rootElementTag);
17
        super(hexFileUploadDevice, rootElementTag);
17
18
18
        this.hexFileUploadDevice = hexFileUploadDevice;
19
        this.hexFileUploadDevice = hexFileUploadDevice;
-
 
20
       
-
 
21
        tags.add(HexFileUploadXML.TAG_ROOT_ELEMENT);
-
 
22
    }
-
 
23
-
 
24
    protected void parseElement(Element element) {
-
 
25
-
 
26
        super.parseElement(element);
-
 
27
-
 
28
        String name = element.getNodeName();
-
 
29
-
 
30
        if (name == rootElementTag) {
-
 
31
-
 
32
            HexFileUploadXML hexFileUploadXML = new HexFileUploadXML(
-
 
33
                    hexFileUploadDevice.getHexFileUpload(),
-
 
34
                    HexFileUploadXML.TAG_ROOT_ELEMENT);
-
 
35
           
-
 
36
            hexFileUploadXML.loadXML(element);
-
 
37
        }
19
    }
38
    }
20
39
21
    public void saveXML(Node node) {
40
    public void saveXML(Node node) {
22
41
23
        super.saveXML(node);
42
        super.saveXML(node);