|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Object java.lang.Enum<Diagnostic.Severity> com.bea.wli.config.resource.Diagnostic.Severity
public static enum Diagnostic.Severity
Enumerated type that describes how this status should be interpreted by the configuration framework. Severity levels are defined in terms of what operations are disallowed (e.g., Cannot create the resource, can create but cannot activate changes) , rather than commonly used ambiguous terms (e.g., Warning, Error, Critical).
Valid
the resource can be created in session and in core. These
kinds of Diagnostic messages are meant to give additional information or suggestion to the user.
CannotCommit
the resource can be created in
session but cannot be committed to the core. Normally this type of Diagnostic is used when
a particular piece of data is missing, or has an invalid value.
CannotCreate
the resources cannot be created/updated even in a session. This
type of Diagnostic should be used if the resource data is structurally illegal, or otherwise
cannot be used to represent that resource.
Enum Constant Summary | |
---|---|
CannotCommit
Indicates a problem with the resource data such that the operation (update/create) is allowed, however the updated/created resource cannot be committed to the core (via session activation). |
|
CannotCreate
Indicates a severe problem with the resource data so that the resource cannot be updated or created with the given data. |
|
Valid
Indicates that the resource has valid data. |
Method Summary | |
---|---|
static Diagnostic.Severity |
combine(Diagnostic.Severity s1,
Diagnostic.Severity s2)
Returns the more severe of the two severity types, CannotCreate being the most severe
and Valid being the least severe. |
Diagnostic.UserSeverity |
getDefaultUserSeverity()
Returns the default user severity for this severity level |
boolean |
isValidSeverity()
Returns true if this severity level indicates a valid severity level, namely, returns true if the severity is Valid |
static Diagnostic.Severity |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static Diagnostic.Severity[] |
values()
Returns an array containing the constants of this enum type, in the order they're declared. |
Methods inherited from class java.lang.Enum |
---|
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final Diagnostic.Severity Valid
public static final Diagnostic.Severity CannotCommit
public static final Diagnostic.Severity CannotCreate
Method Detail |
---|
public static final Diagnostic.Severity[] values()
for(Diagnostic.Severity c : Diagnostic.Severity.values()) System.out.println(c);
public static Diagnostic.Severity valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant
with the specified namepublic static Diagnostic.Severity combine(Diagnostic.Severity s1, Diagnostic.Severity s2)
CannotCreate
being the most severe
and Valid
being the least severe.
s1
- s2
-
public boolean isValidSeverity()
Valid
public Diagnostic.UserSeverity getDefaultUserSeverity()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |