public static enum Diagnostic.UserSeverity extends Enum<Diagnostic.UserSeverity>
Enum Constant and Description |
---|
Error
A diagnostic message that represents an error in resource data.
|
Info
A Diagnostic message that provides user with useful information or hints about the resource.
|
Upgrade
A diagnostic message that is generated during import by the version upgrade process and gives more information about how the resource data has been upgraded.
|
Warning
A diagnostic message that warns the user that even though the resource data may be valid, it could cause certain problem when the resource is activated with this data.
|
Modifier and Type | Method and Description |
---|---|
boolean |
isCompatibleWith(Diagnostic.Severity s)
Returns true if this UserSeverity is compatible with the given system severity
|
static Diagnostic.UserSeverity |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Diagnostic.UserSeverity[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared.
|
public static final Diagnostic.UserSeverity Info
Diagnostic.Severity.Valid
public static final Diagnostic.UserSeverity Upgrade
Diagnostic.Severity.Valid
public static final Diagnostic.UserSeverity Warning
Diagnostic.Severity.Valid
public static final Diagnostic.UserSeverity Error
Diagnostic.Severity.CannotCommit
or Diagnostic.Severity.CannotCreate
.public static Diagnostic.UserSeverity[] values()
for (Diagnostic.UserSeverity c : Diagnostic.UserSeverity.values()) System.out.println(c);
public static Diagnostic.UserSeverity valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic boolean isCompatibleWith(Diagnostic.Severity s)
s
-