- From: Thomas Gambet via cvs-syncmail <cvsmail@w3.org>
- Date: Wed, 02 Sep 2009 13:50:56 +0000
- To: www-validator-cvs@w3.org
Update of /sources/public/2006/unicorn/src/org/w3c/unicorn In directory hutz:/tmp/cvs-serv6876/src/org/w3c/unicorn Modified Files: UnicornCall.java Log Message: implemented the output element of the tasklist. Observations will be displayed in the right order. Index: UnicornCall.java =================================================================== RCS file: /sources/public/2006/unicorn/src/org/w3c/unicorn/UnicornCall.java,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- UnicornCall.java 28 Aug 2009 16:11:41 -0000 1.3 +++ UnicornCall.java 2 Sep 2009 13:50:54 -0000 1.4 @@ -12,9 +12,11 @@ import java.net.MalformedURLException; import java.net.URL; import java.util.ArrayList; +import java.util.Hashtable; import java.util.LinkedHashMap; import java.util.List; import java.util.Map; +import java.util.TreeMap; import javax.activation.MimeType; import javax.xml.parsers.DocumentBuilder; @@ -592,12 +594,16 @@ } /** - * Gives the list of the observations + * Gives the list of the observations in the order specified in the tasklist file * * @return map of the observations of the check */ - public Map<String, Response> getObservationList() { - return mapOfResponse; + public LinkedHashMap<String, Response> getObservationList() { + LinkedHashMap<String, Response> tempMap = new LinkedHashMap<String, Response>(); + for (String observerId : aTask.getListOfOutput()) { + tempMap.put(observerId, mapOfResponse.get(observerId)); + } + return tempMap; } public String getObserverName(String observer, String lang) {
Received on Wednesday, 2 September 2009 13:51:05 UTC