Package org.mantikhor.llapi

Examples of org.mantikhor.llapi.Namenode


     */
    public void testGetNamenode()
    {
        assertNotNull(this.treeI);
       
        Namenode nameNode = this.treeI.getNamenode();
       
        ResourceNode fromNameNode =
            ResourceNodeImpl.getInstanceWithPropertiesAndKhorID(
                    nameNode.getResourceURI(),
                    nameNode.getProperties(),
                    nameNode.getKhorID(),
                    true);
       
        ResourceNode resNode = (ResourceNode)this.getNode(TreeImplTest.NODES.NAME_NODE_TREEI);
       
        assertTrue(fromNameNode.hasSameContents(resNode));
        assertTrue(resNode.hasSameContents(fromNameNode));
       
        assertTrue(nameNode.hasSameContents(resNode));
        assertTrue(resNode.hasSameContents(nameNode));

        assertTrue(resNode.isContentContainedBy(nameNode));
        assertTrue(nameNode.isContentContainedBy(resNode));

        assertTrue(fromNameNode.isContentContainedBy(nameNode));
        assertTrue(nameNode.hasSameContents(fromNameNode));
    }
View Full Code Here


        // see if all the content in this instance is in other
        // that would be namenode and properties

        Graph otherAsGraph = (Graph)other;
        Namenode othersNameNode = otherAsGraph.getNamenode();

        if (!this.namenode.isContentContainedBy(othersNameNode))
        {
            return false;
        }
View Full Code Here

TOP

Related Classes of org.mantikhor.llapi.Namenode

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.