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

Examples of com.volantis.devrep.device.api.xml.identification.IdentificationEntry


    private void dumpIdentification(Identification identification,
            StringBuffer buffer) {

        Iterator entries = identification.entries();
        while (entries.hasNext()) {
            IdentificationEntry entry = (IdentificationEntry) entries.next();
            dumpEntry(entry, buffer);
        }
    }
View Full Code Here


        if (deviceName == null) {
            // iterate throuogh the identification entries
            entriesIter = identification.entries();
        } else {
            // only check one entry
            final IdentificationEntry entry = identification.find(deviceName);
            entriesIter = Collections.singleton(entry).iterator();
        }
        return testDevicePatterns(repository, entriesIter);
    }
View Full Code Here

        final Collection devicePatterns = new ArrayList();
        Identification identification = loadIdentification();
        Iterator iterator = identification.entries();
        while (iterator.hasNext()) {
            IdentificationEntry entry = (IdentificationEntry) iterator.next();
            final String deviceName = entry.getDeviceName();
            iterateGenericPatterns(entry, new GenericPatternIteratee() {
                public void next(String pattern) {
                    devicePatterns.add(new String[]{deviceName, pattern});
                }
            });
View Full Code Here

        }

        // Add the device patterns to the device.
        Identification identification = loadIdentification();
        final Map patterns = new HashMap();
        IdentificationEntry idEntry = identification.find(deviceName);
        if (idEntry != null) {
            iterateGenericPatterns(idEntry, new GenericPatternIteratee() {
                public void next(String pattern) {
                    // NOTE: yes this is intentional, why this must be a
                    // map I have no idea - a list would be fine.
View Full Code Here

TOP

Related Classes of com.volantis.devrep.device.api.xml.identification.IdentificationEntry

Copyright © 2018 www.massapicom. 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.