Can we loop on an Map in the TDD?

"Colbert Philippe" <[email protected]> Wed, 19 Jul 2006 02:10:41 -0400
Newsgroups gmane.comp.text.fmpp
Message-ID <003601c6aafa$1057c010$6601a8c0@ml300>
This is a multi-part message in MIME format.

--===============1317168290==
Content-Type: multipart/alternative;
	boundary="----=_NextPart_000_0033_01C6AAD8.88D86A20"

This is a multi-part message in MIME format.

------=_NextPart_000_0033_01C6AAD8.88D86A20
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

We know that we can loop on List in the TDD file (i..e someList : [ =
...items...]) using the <#list ....> command. =20

Can we loop on Map in the TDD file in the order it appears in the TDD =
file?   There is a strong need for this.   Looping through entries of a =
map, we could get access to the key and value of each entry (i.e. =
entry.key and entry.value)?

Java allows for looping through Map but the order is not respected.   I =
don't know if such Map exists.  The programmer might have to code a Map =
as a List<Entry> in order to achieve this.
------=_NextPart_000_0033_01C6AAD8.88D86A20
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.5450.4" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial>We know that we can loop on List in the TDD=20
file&nbsp;(i..e someList : [ ...items...]) using the &lt;#list ....&gt;=20
command.&nbsp; </FONT></DIV>
<DIV><FONT face=3DArial></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial>Can we loop on Map in the TDD file in the order =
it appears=20
in the TDD file?&nbsp;&nbsp; There is a strong need for =
this.&nbsp;&nbsp;=20
Looping through entries of a map, we could get access to the key and =
value of=20
each entry (i.e. entry.key and entry.value)?</FONT></DIV>
<DIV><FONT face=3DArial></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial>Java allows for looping through Map but the =
order is not=20
respected.&nbsp;&nbsp; I don't know if such Map exists.&nbsp; The =
programmer=20
might have to code a Map as a List&lt;Entry&gt; in order to achieve=20
this.</FONT></DIV></BODY></HTML>

------=_NextPart_000_0033_01C6AAD8.88D86A20--



--===============1317168290==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
--===============1317168290==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
fmpp-open mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fmpp-open

--===============1317168290==--