use of org.whole.lang.models.model.ModelDeclaration in project whole by wholeplatform.
the class ModelsJavaModelGeneratorVisitor method findFirstConcreteEntity.
private String findFirstConcreteEntity(ModelDeclarations declarations) {
IEntityIterator<ModelDeclaration> i = IteratorFactory.<ModelDeclaration>childIterator();
i.reset(declarations);
for (ModelDeclaration declaration : i) {
String name = declaration.getName().wStringValue();
if (!modelInfo.abstractTypes.contains(name))
return name;
}
ModelDeclaration firstModelDeclaration = (ModelDeclaration) declarations.wGet(0);
return firstModelDeclaration.getName().wStringValue();
}
Aggregations