}
}
else if ( level01.getDataItems()[i] instanceof GroupDataItem ) {
GroupDataItem gdi = (GroupDataItem)level01.getDataItems()[i];
String className = c.getName() + "_" + gdi.getDataName();
Class cl = getClass(p, className);
if (cl == null) {
addClass(p, className);
System.out.println("INFO [jIvalo] Added class: " + className);
cl = getClass(p, className);
}
else {
System.out.println("INFO [jIvalo] Updating existing class: " + className);
}
if (cl != null) {
addAttributes(gdi, p, cl, model);
Property newAttr = null;
if ( level01.getDataItems()[i] instanceof GroupDataItemOccurs ) {
GroupDataItemOccurs gdio = (GroupDataItemOccurs)level01.getDataItems()[i];
newAttr = c.createOwnedAttribute(className,p.getOwnedType(cl.getName()),gdio.getOccurs(),gdio.getOccurs());
}
else {
newAttr = c.createOwnedAttribute(className,p.getOwnedType(cl.getName()),1,1);
}
if (newAttr != null) {
newAttr.setVisibility(VisibilityKind.PUBLIC_LITERAL);
addStereotype(newAttr, jIvaloAttributeStereotype);
setTagValue(newAttr, "timestampFormat", "");