- From: Florent Batard via cvs-syncmail <cvsmail@w3.org>
- Date: Tue, 29 Jul 2008 14:03:38 +0000
- To: www-validator-cvs@w3.org
Update of /sources/public/2006/unicorn/org/w3c/unicorn/tasklist In directory hutz:/tmp/cvs-serv9309/org/w3c/unicorn/tasklist Modified Files: TaskListUnmarshallerBeans.java Log Message: Unlink XMLBeans generated object and the tasklist tree correct a number of errors Index: TaskListUnmarshallerBeans.java =================================================================== RCS file: /sources/public/2006/unicorn/org/w3c/unicorn/tasklist/TaskListUnmarshallerBeans.java,v retrieving revision 1.4 retrieving revision 1.5 diff -u -d -r1.4 -r1.5 --- TaskListUnmarshallerBeans.java 22 Jul 2008 09:27:07 -0000 1.4 +++ TaskListUnmarshallerBeans.java 29 Jul 2008 14:03:36 -0000 1.5 @@ -1,472 +1,539 @@ -// package org.w3c.unicorn.tasklist; -// -//import java.io.IOException; -//import java.net.URL; -//import java.util.ArrayList; -//import java.util.LinkedHashMap; -//import java.util.List; -//import java.util.Map; -// -//import javax.activation.MimeTypeParseException; -//import javax.xml.bind.JAXBException; [...982 lines suppressed...] + // creates the tasklist without computing references + for (final TaskType aTask : this.aTaskList.getTaskArray()) { + if (this.mapOfTask.containsKey(aTask.getId())) { + TaskListUnmarshallerBeans.logger.warn("Task with id "+aTask.getId()+" already defined."); + } else { + this.addTask(aTask); + } + } + + // computes and replaces references by their corresponding observations + // and parameters + for (final org.w3c.unicorn.tasklist.Task aTask : this.mapOfTask.values()) { + TaskListUnmarshallerBeans.logger.debug("Expand task : "+aTask.getID()+"."); + aTask.expand(this.mapOfTask); + } + + } + +} \ No newline at end of file
Received on Tuesday, 29 July 2008 14:04:16 UTC