Hi all, I've added a new method on Series: getValuesArray(String name):String[]. There is already a getValues(String name):String method so I had to prepend the 'Array' suffix. Code checked in SVN trunk.
Paul, the Series class address the lack of a structure maintaining a list of named entries. There is no reusable Parameter class (name, value pair) in the JDK. Only the Map.Entry<K,V> interface comes close to it. Having just a List<Parameter> (via ArrayList or similar) is good but doesn't provide any facility to lookup the structure by parameter name (like the getValuesArray(name) method you were looking for). This is what the Series class adds in addition of being a List<Parameter>. I hope that makes sense. Best regards, Jerome > -----Message d'origine----- > De : William Pietri [mailto:[EMAIL PROTECTED] > Envoyé : samedi 22 mars 2008 21:04 > À : discuss@restlet.tigris.org > Objet : Re: Series.getValues() > > Stephan Koops wrote: > > Series is also a List. you can handle it as List. > > Not exactly. Series is a List of Parameters. If there were a > getValues(paramName) call that returned a list of Strings, > that would be > just as good as an array of Strings from my perspective. But > the Series > isn't as good, as I need to pass the values into domain code > that should > have no dependency on Restlet code. > > William