category.setName(attribute.getValue());
}
}
private void processAuthor(Element element, IPersistable type) {
IPerson person = Owl.getModelFactory().createPerson(null, type);
/* Check wether the Attributes are to be processed by a Contribution */
processNamespaceAttributes(element, person);
/* Interpret Children */
List< ? > personChilds = element.getChildren();
for (Iterator< ? > iter = personChilds.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, person))
continue;
/* Name */
else if ("name".equals(name)) { //$NON-NLS-1$
person.setName(child.getText());
processNamespaceAttributes(child, person);
}
/* EMail */
else if ("email".equals(name)) { //$NON-NLS-1$
URI uri = URIUtils.createURI(child.getText());
if (uri != null)
person.setEmail(uri);
processNamespaceAttributes(child, person);
}
/* URI */
else if ("uri".equals(name)) { //$NON-NLS-1$
URI uri = URIUtils.createURI(child.getText());
if (uri != null)
person.setUri(uri);
processNamespaceAttributes(child, person);
}
}
}