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

com.commercetools.rmf.diff.CheckSeverity Maven / Gradle / Ivy

Go to download

RAML API client code generators based on the REST Modeling Framework. https://github.com/vrapio/rest-modeling-framework

There is a newer version: 1.0.0-20241120142200
Show newest version
package com.commercetools.rmf.diff;

import com.fasterxml.jackson.annotation.JsonProperty;
import org.jetbrains.annotations.NotNull;

import java.util.Comparator;

public enum CheckSeverity {
    @JsonProperty("info")
    INFO("info", 100),
    @JsonProperty("warn")
    WARN("warn", 200),
    @JsonProperty("error")
    ERROR("error", 400),
    @JsonProperty("fatal")
    FATAL("fatal", 500);

    public static final String VALID_VALUES = "info, warn, error";

    private final String severity;

    private final int value;

    CheckSeverity(String severity, int value) {
        this.severity = severity; this.value = value;
    }

    public String getSeverity() {
        return severity;
    }

    public int getValue() {
        return value;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy