Package com.volantis.devrep.device.api.xml.hierarchy

Examples of com.volantis.devrep.device.api.xml.hierarchy.Hierarchy.entries()


    public RepositoryEnumeration enumerateDeviceNames(
            RepositoryConnection connection) throws RepositoryException {

        Hierarchy hierarchy = loadHierarchy();
        Iterator entries = hierarchy.entries();
        return new IteratorRepositoryEnumeration(entries) {
            public Object next() throws RepositoryException {
                HierarchyEntry entry = (HierarchyEntry) super.next();
                return entry.getDeviceName();
            }
View Full Code Here


    public RepositoryEnumeration enumerateDeviceFallbacks(
            RepositoryConnection connection) throws RepositoryException {

        Collection deviceFallbacks = new ArrayList();
        Hierarchy hierarchy = loadHierarchy();
        Iterator entries = hierarchy.entries();
        while (entries.hasNext()) {
            HierarchyEntry entry = (HierarchyEntry) entries.next();
            HierarchyEntry parent = entry.getParent();
            if (parent != null) {
                deviceFallbacks.add(new String[] {
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.