Search in sources :

Example 1 with DomainPart

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;
}
Also used : UserRequirement(org.contextmapper.dsl.contextMappingDSL.UserRequirement) Subdomain(org.contextmapper.dsl.contextMappingDSL.Subdomain) DomainPart(org.contextmapper.dsl.contextMappingDSL.DomainPart)

Aggregations

DomainPart (org.contextmapper.dsl.contextMappingDSL.DomainPart)1 Subdomain (org.contextmapper.dsl.contextMappingDSL.Subdomain)1 UserRequirement (org.contextmapper.dsl.contextMappingDSL.UserRequirement)1