All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.structurizr.inspection.FixedSeverityStrategy Maven / Gradle / Ivy

The newest version!
package com.structurizr.inspection;

import com.structurizr.Workspace;
import com.structurizr.model.Element;
import com.structurizr.model.Model;
import com.structurizr.model.Relationship;
import com.structurizr.view.ElementStyle;
import com.structurizr.view.View;
import com.structurizr.view.ViewSet;

public class FixedSeverityStrategy implements SeverityStrategy {

    private final Severity severity;

    public FixedSeverityStrategy(Severity severity) {
        this.severity = severity;
    }

    @Override
    public Severity getSeverity(Inspection inspection, Workspace workspace) {
        return severity;
    }

    @Override
    public Severity getSeverity(Inspection inspection, ViewSet viewSet) {
        return severity;
    }

    @Override
    public Severity getSeverity(Inspection inspection, View view) {
        return severity;
    }

    @Override
    public Severity getSeverity(Inspection inspection, ElementStyle elementStyle) {
        return severity;
    }

    @Override
    public Severity getSeverity(Inspection inspection, Model model) {
        return severity;
    }

    @Override
    public Severity getSeverity(Inspection inspection, Element element) {
        return severity;
    }

    @Override
    public Severity getSeverity(Inspection inspection, Relationship relationship) {
        return severity;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy