Search in sources :

Example 1 with BoundedContextType

use of org.contextmapper.contextmap.generator.model.BoundedContextType in project context-mapper-dsl by ContextMapper.

the class ContextMapModelConverter method convert.

private BoundedContext convert(org.contextmapper.dsl.contextMappingDSL.BoundedContext cmlBoundedContext) {
    BoundedContextType type = BoundedContextType.GENERIC;
    if (cmlBoundedContext.getType().equals(org.contextmapper.dsl.contextMappingDSL.BoundedContextType.TEAM))
        type = BoundedContextType.TEAM;
    BoundedContext boundedContext = new BoundedContext(cmlBoundedContext.getName(), type);
    this.bcMap.put(cmlBoundedContext.getName(), boundedContext);
    return boundedContext;
}
Also used : BoundedContextType(org.contextmapper.contextmap.generator.model.BoundedContextType) BoundedContext(org.contextmapper.contextmap.generator.model.BoundedContext)

Aggregations

BoundedContext (org.contextmapper.contextmap.generator.model.BoundedContext)1 BoundedContextType (org.contextmapper.contextmap.generator.model.BoundedContextType)1