Search in sources :

Example 1 with PDSUseCaseGroup

use of com.mercedesbenz.sechub.pds.usecase.PDSUseCaseGroup in project sechub by mercedes-benz.

the class UseCaseAsciiDocGenerator method generateOverview.

private void generateOverview(UseCaseModel model, Context context, int headlineLevel) {
    context.addLine(headline(headlineLevel) + "Overview about usecase groups");
    UseCaseModelType type = model.getType();
    switch(type) {
        case SECHUB:
            for (UseCaseGroup useCaseGroup : UseCaseGroup.values()) {
                generateGroupUseCaseLinks(context, headlineLevel, model.getGroup(useCaseGroup));
            }
            break;
        case PDS:
            for (PDSUseCaseGroup useCaseGroup : PDSUseCaseGroup.values()) {
                generateGroupUseCaseLinks(context, headlineLevel, model.getGroup(useCaseGroup));
            }
            break;
        default:
            throw new IllegalArgumentException("Unsupported type:" + type);
    }
}
Also used : PDSUseCaseGroup(com.mercedesbenz.sechub.pds.usecase.PDSUseCaseGroup) UseCaseModelType(com.mercedesbenz.sechub.docgen.usecase.UseCaseModel.UseCaseModelType) PDSUseCaseGroup(com.mercedesbenz.sechub.pds.usecase.PDSUseCaseGroup) UseCaseGroup(com.mercedesbenz.sechub.sharedkernel.usecases.UseCaseGroup)

Example 2 with PDSUseCaseGroup

use of com.mercedesbenz.sechub.pds.usecase.PDSUseCaseGroup in project sechub by mercedes-benz.

the class PDSUseCaseAsciiDocGenerator method generateOverview.

private void generateOverview(UseCaseModel model, Context context, int headlineLevel) {
    context.addLine(headline(headlineLevel) + "Overview about usecase groups");
    UseCaseModelType type = model.getType();
    switch(type) {
        case SECHUB:
            for (UseCaseGroup useCaseGroup : UseCaseGroup.values()) {
                generateGroupUseCaseLinks(context, headlineLevel, model.getGroup(useCaseGroup));
            }
            break;
        case PDS:
            for (PDSUseCaseGroup useCaseGroup : PDSUseCaseGroup.values()) {
                generateGroupUseCaseLinks(context, headlineLevel, model.getGroup(useCaseGroup));
            }
            break;
        default:
            throw new IllegalArgumentException("Unsupported type:" + type);
    }
}
Also used : PDSUseCaseGroup(com.mercedesbenz.sechub.pds.usecase.PDSUseCaseGroup) UseCaseModelType(com.mercedesbenz.sechub.docgen.usecase.UseCaseModel.UseCaseModelType) PDSUseCaseGroup(com.mercedesbenz.sechub.pds.usecase.PDSUseCaseGroup) UseCaseGroup(com.mercedesbenz.sechub.sharedkernel.usecases.UseCaseGroup)

Aggregations

UseCaseModelType (com.mercedesbenz.sechub.docgen.usecase.UseCaseModel.UseCaseModelType)2 PDSUseCaseGroup (com.mercedesbenz.sechub.pds.usecase.PDSUseCaseGroup)2 UseCaseGroup (com.mercedesbenz.sechub.sharedkernel.usecases.UseCaseGroup)2