Package com.volantis.devrep.repository.api.devices.logging

Examples of com.volantis.devrep.repository.api.devices.logging.Entry


                serializer.startPrefixMapping("", NAMESPACE_UNKNOWN_DEVICES);
                serializer.startElement(NAMESPACE_UNKNOWN_DEVICES,
                    ELEMENT_NAME_ENTRIES, ELEMENT_NAME_ENTRIES, EMPTY_ATTRIBUTES);

                while (iter.hasNext()) {
                    final Entry entry =
                        (Entry) iter.next();
                    serializer.startElement(NAMESPACE_UNKNOWN_DEVICES,
                        ELEMENT_NAME_ENTRY, ELEMENT_NAME_ENTRY,
                        EMPTY_ATTRIBUTES);

                    // serialize name
                    final String name = entry.getResolvedName();
                    serializer.startElement(NAMESPACE_UNKNOWN_DEVICES,
                        ELEMENT_NAME_RESOLVED_NAME, ELEMENT_NAME_RESOLVED_NAME,
                        EMPTY_ATTRIBUTES);
                    serializer.characters(
                        name.toCharArray(), 0, name.length());
                    serializer.endElement(NAMESPACE_UNKNOWN_DEVICES,
                        ELEMENT_NAME_RESOLVED_NAME, ELEMENT_NAME_RESOLVED_NAME);

                    // serialize type
                    final String type = entry.getDeviceType();
                    serializer.startElement(NAMESPACE_UNKNOWN_DEVICES,
                        ELEMENT_NAME_DEVICE_TYPE, ELEMENT_NAME_DEVICE_TYPE,
                        EMPTY_ATTRIBUTES);
                    serializer.characters(type.toCharArray(), 0, type.length());
                    serializer.endElement(NAMESPACE_UNKNOWN_DEVICES,
View Full Code Here

TOP

Related Classes of com.volantis.devrep.repository.api.devices.logging.Entry

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.