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

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

There is a newer version: 3.0.0
Show newest version
package com.structurizr.inspection;

public final class Violation {

    private Inspection inspection;
    private Severity severity;
    private final String message;

    Violation(Inspection inspection, String message) {
        this.inspection = inspection;
        this.message = message;
    }

    public String getType() {
        return inspection.getType();
    }

    public Severity getSeverity() {
        return severity;
    }

    public String getMessage() {
        return message;
    }

    @Override
    public String toString() {
        return inspection.getType() + " | " + severity + " | " + message;
    }

    public Violation withSeverity(Severity severity) {
        this.severity = severity;

        return this;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy