Hello,
I am attempting to extend a class from the sourceJammer api and I am running into an issue. I am retrieving the nodes at the top level but when I try to view any children ,using childCount() , I don't return any values even though there are several children existing, is there something I am missing?:
sjInterface.setOut(System.out);
Project sjProject = sjInterface.connect("nas01","http:localhost:80/sourcejammer/servlet/rpcrouter","anon","anon");
System.out.println("Root Project: " + sjProject.getNodeName());
NodeList nodeList = sjProject.childList();
NodeIterator nodeIter = nodeList.getIterator();
while(nodeIter.hasMoreNodes()){
Node node = nodeIter.getNextNode();
System.out.println("Node: " + node.getNodeName() + " Children: " + node.childCount() + " Node: " + node);
}
sjInterface.disconnect();
OUTPUT:
# Connected to archive nas01.
Root Project: nas01
Node: Iview-new Children: 0 Node: Iview-new P
Node: legacy Children: 0 Node: legacy P
Node: msrc Children: 0 Node: msrc
Thanks,
Brian
- [SourceJammer-users] sj API Brian . Allen
- Re: [SourceJammer-users] sj API Robert MacGrogan