*/
@SuppressWarnings("unchecked")
private void setClickTags(PropertiesConfiguration file, CrawlSpecification crawler) {
/* set click tags */
List<String> tags = file.getList(CRAWLTAGS);
TagElement tagElement;
/* walk through all elements */
for (String tag : tags) {
/* call the correct api stuff on the crawler for tag */
tagElement = parseTagElement(tag);
CrawlElement element = crawler.click(tagElement.getName());
for (TagAttribute attrib : tagElement.getAttributes()) {
element.withAttribute(attrib.getName(), attrib.getValue());
}
}
/* do the same for the exclude tags */
tags = file.getList(CRAWLEXCLUDETAGS);
/* walk through all elements */
for (String tag : tags) {
/* call the correct api stuff on the crawler for tag */
tagElement = parseTagElement(tag);
CrawlElement element = crawler.dontClick(tagElement.getName());
for (TagAttribute attrib : tagElement.getAttributes()) {
element.withAttribute(attrib.getName(), attrib.getValue());
}
}
}