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

Examples of com.volantis.devrep.device.api.xml.tacidentification.TacIdentification


    private ResourceJiBXTester tester = new ResourceJiBXTester(
            PolicyTestCase.class);

    public void testUnmarshall() throws JiBXException, IOException {
       
        TacIdentification tacIdentification =  (TacIdentification) tester.unmarshall(
                TacIdentification.class, "TacIdentificationTest.xml");

        StringBuffer output = new StringBuffer();
        dumpTacIdentification(tacIdentification, output);
        String actual = output.toString();
View Full Code Here


            if (patterns.size() != 0) {
                device.setPatterns(patterns);
            }
        }
        // Add the device TACs to the device.
        TacIdentification tacIdentification = loadTacIdentification();
        if (tacIdentification != null) {
            TacIdentificationEntry tacEntry = tacIdentification.find(
                    deviceName);
            if (tacEntry != null) {
                Set tacSet = convertTacEntryToTacSet(tacEntry);
                if (tacSet.size() != 0) {
                    device.setTACValues(tacSet);
View Full Code Here

    public RepositoryEnumeration enumerateDeviceTACs(
            RepositoryConnection connection) throws RepositoryException {

        Collection tacPairs = new ArrayList();
        TacIdentification tacIdentification = loadTacIdentification();
        if (tacIdentification != null) {
            Iterator entries = tacIdentification.entries();
            while (entries.hasNext()) {
                TacIdentificationEntry entry = (TacIdentificationEntry)
                        entries.next();
                String deviceName = entry.getDeviceName();
                Iterator numbers = entry.numbers();
View Full Code Here

TOP

Related Classes of com.volantis.devrep.device.api.xml.tacidentification.TacIdentification

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.