if (_showDatabaseConfigs) {
modelChildren.addAll(model.getDatabaseConfigs());
}
children = modelChildren.toArray();
} else if (_parentElement instanceof EOEntity) {
EOEntity entity = (EOEntity) _parentElement;
Set<EOModelObject> entityChildren = new TreeSet<EOModelObject>(new EOSortableEOModelObjectComparator());
if (_showAttributes) {
if (_showNonClassProperties) {
entityChildren.addAll(entity.getAttributes());
} else {
entityChildren.addAll(entity.getClassAttributes());
}
}
if (_showRelationships) {
if (_showNonClassProperties) {
entityChildren.addAll(entity.getRelationships());
} else {
entityChildren.addAll(entity.getClassRelationships());
}
}
if (_showFetchSpecs) {
entityChildren.addAll(entity.getFetchSpecs());
}
if (_showEntityIndexes) {
entityChildren.addAll(entity.getEntityIndexes());
}
if (_showAttributes && _showRelationships) {
entityChildren.addAll(entity.getChildrenEntities());
}
children = entityChildren.toArray();
} else if (_parentElement instanceof EORelationship) {
EORelationship relationship = (EORelationship) _parentElement;
Set<AbstractEOAttributePath> relationshipPathChildren = new TreeSet<AbstractEOAttributePath>(new EOSortableEOModelObjectComparator());