org.modeldriven.fuml.xmi.validation
Enum ErrorSeverity
java.lang.Object
java.lang.Enum<ErrorSeverity>
org.modeldriven.fuml.xmi.validation.ErrorSeverity
- All Implemented Interfaces:
- Serializable, Comparable<ErrorSeverity>
public enum ErrorSeverity
- extends Enum<ErrorSeverity>
Represents various severity levels for error conditions encountered during
validation processing. Such severities are intended to be processing
context-specific. For instance, errors encountered during a simple compliance
check, may be linked to warning-level severities, while errors encountered
during assembly of a target java object-model may be linked to a fatal
severity.
- Author:
- Scott Cinnamond
FATAL
public static final ErrorSeverity FATAL
WARN
public static final ErrorSeverity WARN
INFO
public static final ErrorSeverity INFO
values
public static ErrorSeverity[] values()
- Returns an array containing the constants of this enum type, in
the order they are declared. This method may be used to iterate
over the constants as follows:
for (ErrorSeverity c : ErrorSeverity.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static ErrorSeverity valueOf(String name)
- Returns the enum constant of this type with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this type. (Extraneous whitespace characters are
not permitted.)
- Parameters:
name - the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException - if this enum type has no constant
with the specified name
NullPointerException - if the argument is null
value
public String value()
fromValue
public static ErrorSeverity fromValue(String v)
Copyright © 2012. All Rights Reserved.