/* Return text and html as is */
return element.getText();
}
private void processSource(Element element, INews news) {
ISource source = Owl.getModelFactory().createSource(news);
/* Check wether the Attributes are to be processed by a Contribution */
processNamespaceAttributes(element, source);
/* Interpret Children */
List< ? > sourceChilds = element.getChildren();
for (Iterator< ? > iter = sourceChilds.iterator(); iter.hasNext();) {
Element child = (Element) iter.next();
String name = child.getName().toLowerCase();
/* Check wether this Element is to be processed by a Contribution */
if (processElementExtern(child, source))
continue;
/* Name */
else if ("title".equals(name)) { //$NON-NLS-1$
source.setName(child.getText());
processNamespaceAttributes(child, source);
}
/* EMail */
else if ("link".equals(name)) { //$NON-NLS-1$
URI uri = URIUtils.createURI(child.getText());
if (uri != null)
source.setLink(uri);
processNamespaceAttributes(child, source);
}
/* URI */
else if ("id".equals(name) && source.getLink() == null) { //$NON-NLS-1$
URI uri = URIUtils.createURI(child.getText());
if (uri != null)
source.setLink(uri);
processNamespaceAttributes(child, source);
}
}
}