Package com.volantis.devrep.repository.accessors

Examples of com.volantis.devrep.repository.accessors.EclipseDeviceRepository.writeHierarchy()


                Element master = root.getChild("device", root.getNamespace());
                Element newDevice = new Element("device", root.getNamespace());
                newDevice.setAttribute("name", "FakeDevice");
                master.addContent(newDevice);

                accessor.writeHierarchy();
                accessor.saveRepositoryArchive();

                ZipArchive archive = (ZipArchive)
                        PrivateAccessor.getField(accessor, "repositoryArchive");
                InputStream input = archive.getInputFrom("hierarchy.xml");
View Full Code Here


            org.jdom.Element deviceElement = createDeviceElement(deviceProps);
            Map devices = new HashMap(1);
            devices.put(deviceName, deviceElement);
            accessor.writeDeviceElements(devices);
            accessor.writeHierarchy();
        }

        accessor.saveRepositoryArchive();

        // Connect to a single file XML repository.
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.