Package org.mantikhor.llapi

Examples of org.mantikhor.llapi.KhoronItem


        Map<Integer, KhoronItem> properties = gi.getPropertiesThatAreKhoronItems();
        List<KhoronItem> all = new ArrayList<KhoronItem>(valNodes.values());
        all.addAll(properties.values());
        for (KhoronItem item : all)
        {
            KhoronItem fromTree = this.treeI.getKhoronItem(item.getKhorID());
            if (!(fromTree instanceof Namenode))
                assertTrue(fromTree.equals(item));
        }
    }


    public void testContainsKhoronItem()
    {
        assertNotNull(this.treeI);
        for (BaseValNode bvn : this.resourceNodes.values())
        {
            KhoronItem item = (KhoronItem)bvn;
            assertTrue(this.treeI.containsKhoronItem(item.getKhorID()));
           
        }
        for (BaseProperty prop : this.properties.values())
        {
            KhoronItem item = (KhoronItem)prop;
            assertTrue(this.treeI.containsKhoronItem(item.getKhorID()));
        }
    }

        // 3. Get all the BaseProperty(s) that are also KhoronItems out of this.graphInformation.
        Map<Integer, KhoronItem> basePropertiesThatAreKhoronItems =
                this.graphInformation.getPropertiesThatAreKhoronItems();

        // 4. If you find the KhoronItem in this Map, return it.
        KhoronItem retValue =
                basePropertiesThatAreKhoronItems.get(Integer.valueOf(khorID));
        if (retValue != null)
        {
            return retValue;
        }

TOP

Related Classes of org.mantikhor.llapi.KhoronItem

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.