package composite;
public class Part extends SitePage {
super(name, descr, keywords);
inners = new LinkedList<SitePage>();
}
for (Iterator iter = inners.
iterator(); iter.
hasNext();
) { SitePage innerPage = (SitePage) iter.next();
res.append(innerPage.getKeywords());
}
return res.toString();
}
public boolean Add(SitePage page) {
inners.add(page);
return true;
}
public boolean Remove(SitePage page) {
inners.remove(page);
return true;
}
public Iterator<SitePage> GetInners() {
return inners.iterator();
}
}