Package gri.tasks.managers

Examples of gri.tasks.managers.BasicTaskCollection


    List fileNames = new ListSerializer(
        Serializers.STRING_SERIALIZER, "file").readList(elem);
   
    FunctionXMLParser parser = new FunctionXMLParser();
   
    BasicTaskCollection tasks = new BasicTaskCollection();
   
    for (int i=0; i<fileNames.size(); i++) {
      String fileName = (String)fileNames.get(i);
      List funcEntries = parser.parseFunctionEntries(new File(fileName));

      for (int j=0; j<funcEntries.size(); j++) {
        FunctionEntry funcEntry = (FunctionEntry)funcEntries.get(j);
        tasks.add(funcEntry.createTaskEntry());
      }
    }
   
    return new BasicTaskManager(tasks);
  }
View Full Code Here


  // ---------------------------------------------------------- Wrappers

  public BasicTaskCollection parseTaskCollection(File file) throws IOException, JDOMException, InvalidXMLException {
    List entries = parseFunctionEntries(file);
   
    BasicTaskCollection tasks =new BasicTaskCollection();
    Iterator iEntries = entries.iterator();
    while (iEntries.hasNext()) {
      FunctionEntry entry = (FunctionEntry)iEntries.next();
      tasks.add(entry.createTaskEntry());
    }
   
    return tasks;
  }
View Full Code Here

    for (int i=0; i<functionEntries.size(); i++) {
      FunctionEntry entry = (FunctionEntry)functionEntries.get(i);
      taskEntries.add(entry.createTaskEntry());
    }
   
    return new BasicTaskCollection(taskEntries);      
  }
View Full Code Here

TOP

Related Classes of gri.tasks.managers.BasicTaskCollection

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.