<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[How to get the "object tree" and]]></title><description><![CDATA[<p dir="auto">hi:<br />
I am developping our own console by the client java api(version 1.1.5). my friend have been ask you the get the official java-client(nxmc),but we are incapable the read it(because we are a new hand in java) .</p>
<p dir="auto">Back to our topic:<br />
I want to get the "object tree" just like below:<br />
Entire Network<br />
  + 10.0.0.0/24<br />
  + 10.0.1.0/24<br />
  - 10.0.2.0/24<br />
     + 10.2.2.3/24<br />
     + 10.2.2.4/24</p>
<p dir="auto">How can it come true in the official java-client(nxmc)? It that some of the existing java api for it?<br />
Best wish!</p>
<p dir="auto">If you a free,can you tell me how the "topological graph"(ip neighbors) come true? Is it  come true just like the  "object tree"  above</p>
]]></description><link>https://forum.netxms.org/topic/1446/how-to-get-the-object-tree-and</link><generator>RSS for Node</generator><lastBuildDate>Fri, 13 Nov 2026 10:20:39 GMT</lastBuildDate><atom:link href="https://forum.netxms.org/topic/1446.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 15 Nov 2011 12:58:52 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to How to get the "object tree" and on Thu, 17 Nov 2011 02:48:52 GMT]]></title><description><![CDATA[<p dir="auto">Thank you very much</p>
]]></description><link>https://forum.netxms.org/post/6317</link><guid isPermaLink="true">https://forum.netxms.org/post/6317</guid><dc:creator><![CDATA[165432896]]></dc:creator><pubDate>Thu, 17 Nov 2011 02:48:52 GMT</pubDate></item><item><title><![CDATA[Reply to How to get the "object tree" and on Tue, 15 Nov 2011 16:17:10 GMT]]></title><description><![CDATA[<p dir="auto">Hi!</p>
<p dir="auto">In nxmc we use Eclipse viewers, so code to got parent/child relations is actually decoupled into separate pieces. Simple code to print object tree, which you can use as an example:</p>
<pre><code>	private void printObject(GenericObject object, int level)
	{
		for(int i = 0; i &lt; level; i++)
			System.out.print(' ');
		System.out.println(object.getObjectName());

		for(GenericObject o : object.getChildsAsArray())
			printObject(o, level + 2);
	}

	public void main() throws Exception
	{
		final NXCSession session = connect();  // obtain session somehow

		session.syncObjects();

		GenericObject object = session.findObjectById(1, EntireNetwork.class);

		printObject(object, 0);

		session.disconnect();
	}
</code></pre>
<p dir="auto">Best regards,<br />
Victor</p>
]]></description><link>https://forum.netxms.org/post/6311</link><guid isPermaLink="true">https://forum.netxms.org/post/6311</guid><dc:creator><![CDATA[victor]]></dc:creator><pubDate>Tue, 15 Nov 2011 16:17:10 GMT</pubDate></item></channel></rss>