"The following components have a direct AGGREGATION relation FROM " +
mo.getUserFriendlyPluralName() + " :");
TreeMap<String, AbstractManagedObjectDefinition> componentList =
new TreeMap<String, AbstractManagedObjectDefinition>();
for ( AggregationPropertyDefinition agg : aggregProps) {
RelationDefinition rel = agg.getRelationDefinition();
AbstractManagedObjectDefinition childRel = rel.getChildDefinition();
componentList.put(childRel.getName(), childRel);
}
for (AbstractManagedObjectDefinition component : componentList.values()) {
beginList();
link(component.getUserFriendlyName().toString(), component.getName() +
".html");
endList();
}
}
//
// Relations TO this component
//
if (!isReverseCompRelsEmpty || !isReverseAggregPropsEmpty) {
heading3("Relations To this Component");
}
if (!mo.getReverseRelationDefinitions().isEmpty()) {
if (!isReverseCompRelsEmpty) {
paragraph(
"The following components have a direct COMPOSITION relation TO " +
mo.getUserFriendlyPluralName() + " :");
for ( RelationDefinition rel : reverseCompRels) {
beginList();
AbstractManagedObjectDefinition childRel = rel.getParentDefinition();
link(childRel.getUserFriendlyName().toString(), childRel.getName() +
".html");
endList();
}
}