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

io.takari.bpm.model.SourceMap Maven / Gradle / Ivy

There is a newer version: 1.0.3
Show newest version
package io.takari.bpm.model;

import java.io.Serializable;

public class SourceMap implements Serializable {

    private final Significance significance;
    private final String source;
    private final int line;
    private final int column;
    private final String description;

    public SourceMap(Significance significance, String source, int line, int column, String description) {
        this.significance = significance;
        this.source = source;
        this.line = line;
        this.column = column;
        this.description = description;
    }

    public Significance getSignificance() {
        return significance;
    }

    public String getSource() {
        return source;
    }

    public int getLine() {
        return line;
    }

    public int getColumn() {
        return column;
    }

    public String getDescription() {
        return description;
    }

    @Override
    public String toString() {
        return "SourceMap[" +
                "significance=" + significance +
                ", source='" + source + '\'' +
                ", line=" + line +
                ", column=" + column +
                ", description='" + description + '\'' +
                ']';
    }

    public enum Significance {

        HIGH,
        MEDIUM,
        LOW
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy