}
public IVResource[] findChildren(String childName) {
// TODO Auto-generated method stub
Path path = new Path(childName);
IOFileFilter filter;
if (path.segment(0).equals("*")) {
filter = new NameFileFilter(path.lastSegment());
} else {
String lastSegment = path.lastSegment();
if (lastSegment.startsWith("*")) {
filter = new SuffixFileFilter(lastSegment.substring(1));
} else {
filter = null;
}
}
Vector results = new Vector();
for (int i = 0; i < this.children.size(); i++) {
IVResource r1 = (IVResource) children.get(i);
File f1 = new File(r1.getName());
if (filter.accept(f1)) {
results.add(r1);
}
if (r1.isDirectory()) {
IVResource[] more = r1.findChildren(childName);