use of org.contextmapper.dsl.contextMappingDSL.DomainPart in project context-mapper-dsl by ContextMapper.
the class CMLModelObjectsResolvingHelper method resolveUserRequirements.
public Set<UserRequirement> resolveUserRequirements(BoundedContext boundedContext) {
Set<UserRequirement> requirements = Sets.newHashSet();
for (DomainPart domainPart : boundedContext.getImplementedDomainParts()) {
if (!(domainPart instanceof Subdomain))
continue;
Subdomain subdomain = (Subdomain) domainPart;
requirements.addAll(subdomain.getSupportedFeatures());
}
return requirements;
}
Aggregations