}
Owl.getModelFactory().createGuid(news, element.getText(), permaLink);
}
private void processTextInput(Element element, IFeed feed) {
ITextInput input = Owl.getModelFactory().createTextInput(feed);
/* Check wether the Attributes are to be processed by a Contribution */
processNamespaceAttributes(element, input);
/* Interpret Attributes */
List< ? > inputChilds = element.getChildren();
for (Iterator< ? > iter = inputChilds.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, input))
continue;
/* Title */
else if ("title".equals(name)) { //$NON-NLS-1$
input.setTitle(child.getText());
processNamespaceAttributes(child, input);
}
/* Description */
else if ("description".equals(name)) { //$NON-NLS-1$
input.setDescription(child.getText());
processNamespaceAttributes(child, input);
}
/* Name */
else if ("name".equals(name)) { //$NON-NLS-1$
input.setName(child.getText());
processNamespaceAttributes(child, input);
}
/* Link */
else if ("link".equals(name)) { //$NON-NLS-1$
URI uri = URIUtils.createURI(child.getText());
if (uri != null)
input.setLink(uri);
processNamespaceAttributes(child, input);
}
}
}