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

io.swagger.report.Message Maven / Gradle / Ivy

There is a newer version: 1.0.71
Show newest version
package io.swagger.report;

public class Message {
    String path;
    String message;
    Severity severity;

    public Message(String path, String message, Severity severity) {
        this.path = path;
        this.message = message;
        this.severity = severity;
    }

    public String getPath() {
        return path;
    }

    public String getMessage() {
        return message;
    }

    public Severity getSeverity() {
        return severity;
    }

    public String toString() {
        StringBuilder b = new StringBuilder();

        if (path != null) {
            b.append(path);
        }

        b.append("\t");

        if (message != null) {
            b.append(message);
        }

        b.append("\t");

        if (severity != null) {
            b.append(severity);
        }

        return b.toString();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy