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

com.okworx.ilcd.validation.events.Severity Maven / Gradle / Ivy

Go to download

A Java library for performing technical validation of data in ILCD data format.

There is a newer version: 2.7.2
Show newest version
package com.okworx.ilcd.validation.events;

/**
 * 

Severity class.

* * @author oliver.kusche * @version $Id: $Id */ public enum Severity { SUCCESS("SUCCESS"), WARNING("WARNING"), ERROR("ERROR"), FATAL("FATAL"); /** The value. */ private final String value; /** * Instantiates a new type of process value. * * @param v * the value */ Severity(String v) { value = v; } /** * Value. * * @return the string */ public String value() { return value; } /** * From value. * * @param v * the value * @return the type of process value */ public static Severity fromValue(String v) { for (Severity c : Severity.values()) { if (c.value.equals(v)) { return c; } } throw new IllegalArgumentException(v); } /** * Gets the value. * * @return the value */ public String getValue() { return value; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy