perfsonar-dev - getChildMap() question
Subject: perfsonar development work
List archive
- From: Herbert Souza <>
- To:
- Subject: getChildMap() question
- Date: Thu, 15 Mar 2007 09:37:16 -0700 (PDT)
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com.br; h=X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-ID; b=QwELT5EvNgm5iRFEIC6CQ/y+5kz1pB8QfW0Bd/jKGcaXDGif/1VXmZuB3nGiudwaj0x5HJVrH5I6HBa66NIw0HyGPhodotWmB82An5p29zjsgIlvF+YSgMor7J0rIazisbrMv+mLabEby0XoTuyiDm+Kx96V6Ct63aDpuiAQfMU=;
Hi all,
I have a XML message with one Metada and one Data objects. The Data object
contains:
nmwg:data id="data0" metadataIdRef="serviceLookupInfo">
<nmwg:metadata id="meta1">
<nmwgt:hostName>atlang-hstnng.abilene.ucaid.edu</nmwgt:hostName>
<nmwgt:ifName>unknown</nmwgt:ifName>
<nmwgt:ifDescription>hstn:oc192(p2p)::show:intracloud</nmwgt:ifDescription>
<nmwgt:ifAddress type="ipv4">198.32.8.34</nmwgt:ifAddress>
<nmwgt:direction>in</nmwgt:direction>
<nmwgt:capacity>10000000000</nmwgt:capacity>
</nmwgt:interface>
</netutil:subject>
<nmwg:eventType id="tt1">utilization</nmwg:eventType>
</nmwg:metadata>
</nmwg:data>
I am trynig to get the childrens of the Metadata(meta1) in Data thus:
Collection<org.ggf.ns.nmwg.base.v2_0.Element> col =
request.getDataMap().values();
Iterator reqDataArrIterator = col.iterator();
while (reqDataArrIterator.hasNext()) {
Data requestData = (Data)reqDataArrIterator.next();
Collection<org.ggf.ns.nmwg.base.v2_0.Element> col2 =
requestData.getMetadataMap().values();
Iterator reqDataArrIterator2 = col2.iterator();
while (reqDataArrIterator2.hasNext()) {
Metadata meta = (Metadata)reqDataArrIterator2.next();
Collection<org.ggf.ns.nmwg.base.v2_0.Element> col3
=meta.getChildMap().values();
org.ggf.ns.nmwg.base.v2_0.Element ele2[] =
meta.getChildArray();
org.ggf.ns.nmwg.base.v2_0.Element ele3 =
(org.ggf.ns.nmwg.base.v2_0.Element)meta.getChild("subj1");
Iterator reqDataArrIterator3 = col3.iterator();
while (reqDataArrIterator3.hasNext()) {
org.ggf.ns.nmwg.base.v2_0.Element ele =
(org.ggf.ns.nmwg.base.v2_0.Element)reqDataArrIterator3.next();
}
}
}
But the method .getChildMap().values(); return a Map empty. Somebody could
explain me why?
Thanks
-------------------------------
Herbert Monteiro Souza
Cel Phone: +5571 88029549
Phone: +5571 33304658
-------------------------------
UNIFACS - UNIVERSIDADE SALVADOR
-------------------------------
NUPERC - NÚCLEO DE PESQUISA EM
REDES DE COMPUTADORES
-------------------------------
__________________________________________________
Fale com seus amigos de graça com o novo Yahoo! Messenger
http://br.messenger.yahoo.com/
- getChildMap() question, Herbert Souza, 03/15/2007
- Re: [pS-dev] getChildMap() question, Jason Zurawski, 03/15/2007
Archive powered by MHonArc 2.6.16.