| | |
| | | } |
| | | } |
| | | |
| | | // Check if something to print in reverse aggregation relations |
| | | // (even if the list not empty, it may contain only relations from |
| | | // hidden component) |
| | | boolean isReverseAggregPropsEmpty = true; |
| | | if (!reverseAggregProps.isEmpty()) { |
| | | for (AggregationPropertyDefinition agg : reverseAggregProps) { |
| | | AbstractManagedObjectDefinition fromMo = |
| | | agg.getManagedObjectDefinition(); |
| | | @SuppressWarnings("unchecked") |
| | | Collection<RelationDefinition> rels = |
| | | fromMo.getAllReverseRelationDefinitions(); |
| | | for (RelationDefinition rel : rels) { |
| | | if (rel.hasOption(RelationOption.HIDDEN)) { |
| | | continue; |
| | | } |
| | | isReverseAggregPropsEmpty = false; |
| | | } |
| | | } |
| | | } |
| | | |
| | | |
| | | // |
| | | // Relations FROM this component |
| | | // |
| | |
| | | // Relations TO this component |
| | | // |
| | | |
| | | if (!isReverseCompRelsEmpty || !reverseAggregProps.isEmpty()) { |
| | | if (!isReverseCompRelsEmpty || !isReverseAggregPropsEmpty) { |
| | | heading3("Relations To this Component"); |
| | | } |
| | | |
| | |
| | | } |
| | | } |
| | | } |
| | | if (!reverseAggregProps.isEmpty()) { |
| | | if (!isReverseAggregPropsEmpty) { |
| | | paragraph( |
| | | "The following components have a direct AGGREGATION relation TO " + |
| | | mo.getUserFriendlyPluralName() + " :"); |