}
}
}
private void processCategory(Element element, IEntity type) {
ICategory category = Owl.getModelFactory().createCategory(null, type);
/* Interpret Attributes */
List< ? > categoryAttributes = element.getAttributes();
for (Iterator< ? > iter = categoryAttributes.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, category))
continue;
/* Term */
else if ("term".equals(name)) {//$NON-NLS-1$
category.setDomain(attribute.getValue());
/* Use as Name if not yet set */
if (category.getName() == null)
category.setName(attribute.getValue());
}
/* Label */
else if ("label".equals(name)) //$NON-NLS-1$
category.setName(attribute.getValue());
}
}