class CaseManagementSVGViewBuilder implements SVGShapeViewBuilder {

    @Override
    public SVGShapeView build(final String name,
                              final SVGPrimitiveShape primitiveShape,
                              final double width,
                              final double height,
                              final boolean resizable) {
        switch (name) {
            case "stage":
                return new CaseManagementStageShapeView(name, primitiveShape, width, height, false);

            case "rectangle":
                return new CaseManagementDiagramShapeView(name, primitiveShape, width, height, false);

            default:
                return new CaseManagementShapeView(name, primitiveShape, width, height, false);
        }
    }

}