INews news = Owl.getModelFactory().createNews(null, feed, new Date(System.currentTimeMillis() - (fNewsCounter++ * 1)));
/* Interpret Attributes */
List< ? > outlineAttributes = element.getAttributes();
for (Iterator< ? > iter = outlineAttributes.iterator(); iter.hasNext();) {
Attribute attribute = (Attribute) iter.next();
String name = attribute.getName().toLowerCase();
/* Check wether this Attribute is to be processed by a Contribution */
if (processAttributeExtern(attribute, news))
continue;
/* Title */
else if ("title".equals(name)) //$NON-NLS-1$
news.setTitle(attribute.getValue());
/* URL */
else if ("url".equals(name)) { //$NON-NLS-1$
URI uri = URIUtils.createURI(attribute.getValue());
if (uri != null)
news.setLink(uri);
}
/* HTML URL - If not yet set as Link */
else if ("htmlurl".equals(name) && news.getLink() == null) { //$NON-NLS-1$
URI uri = URIUtils.createURI(attribute.getValue());
if (uri != null)
news.setLink(uri);
}
/* XML URL */
else if ("xmlurl".equals(name)) { //$NON-NLS-1$
URI uri = URIUtils.createURI(attribute.getValue());
if (uri != null) {
ISource source = Owl.getModelFactory().createSource(news);
source.setLink(uri);
}
}
/* Text */
else if ("text".equals(name)) //$NON-NLS-1$
news.setDescription(attribute.getValue());
/* Description */
else if ("description".equals(name)) //$NON-NLS-1$
news.setDescription(attribute.getValue());
}
/* Interpret Children */
List< ? > channelChildren = element.getChildren();
for (Iterator< ? > iter = channelChildren.iterator(); iter.hasNext();) {