Common interface on ProjectFile and Task for getChildTasks()
Multi platform library to read and write schedule data
Brought to you by:
joniles
Currently, both ProjectFile and Task provide methods
public List<task> getChildTasks()
int getChildTaskCount()</task>
If there was a common interface that both worked on, it would make writing a generic task tree walker much simpler, as it could then work with both
There are also some common parts between Task and Resource, eg ID / Name / Notes / Hyperlink, which would be good to have a common interface for too
I've addressed the first part of this request. I've removed getChildTaskCount as it was a bit redundant... it was only hiding a call to size() on the list of child tasks. There is now a new interface shared between ProjectFile and Task which provides getChildTasks().
Just doing some housekeeping, looks like I didn't close this ticket at the time I addressed the comments.