com.okworx.ilcd.validation.events.Severity Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ilcd-validation Show documentation
Show all versions of ilcd-validation Show documentation
A Java library for performing technical validation of data in ILCD data format.
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