private Multimap<String, Feature> buildNameToInheritedPropertiesMap(Structure structure) { Multimap<String, Feature> inheritedProperties = LinkedHashMultimap.create(); for (Inheritable next : structure.getSupertypes()) { if (next instanceof Structure) { Structure supertype = (Structure) next; addInheritedProperties(supertype); for (Feature inheritedProperty : supertype.getOwnedFeatures()) { inheritedProperties.put(inheritedProperty.getName(), inheritedProperty); } } } return inheritedProperties; } }
return result; for (Inheritable supertype : structure.getSupertypes()) { if (supertype instanceof Structure) { Multimap<String, FeatureHierarchy> inheritedFeatures = getInheritedFeaturesMap((Structure) supertype);