Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Service Bus
11g Release 1 (11.1.1.3)

E15033-01


com.bea.wli.config.resource
Enum Diagnostic.Severity

java.lang.Object
  extended by java.lang.Enum<Diagnostic.Severity>
      extended by com.bea.wli.config.resource.Diagnostic.Severity

All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<Diagnostic.Severity>
Enclosing class:
Diagnostic

public static enum Diagnostic.Severity
extends java.lang.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).


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(java.lang.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 are 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

Valid

public static final Diagnostic.Severity Valid
Indicates that the resource has valid data. A valid resource may be accompanied with informative diagnostic messages.

CannotCommit

public static final Diagnostic.Severity 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

public static final Diagnostic.Severity CannotCreate
Indicates a severe problem with the resource data so that the resource cannot be updated or created with the given data.

Method Detail

values

public static Diagnostic.Severity[] 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 (Diagnostic.Severity c : Diagnostic.Severity.values())
    System.out.println(c);
Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static Diagnostic.Severity valueOf(java.lang.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:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

combine

public 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.
Parameters:
s1 -
s2 -
Returns:

isValidSeverity

public boolean isValidSeverity()
Returns true if this severity level indicates a valid severity level, namely, returns true if the severity is Valid
Returns:

getDefaultUserSeverity

public Diagnostic.UserSeverity getDefaultUserSeverity()
Returns the default user severity for this severity level
Returns:

Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Service Bus
11g Release 1 (11.1.1.3)

E15033-01


Copyright © 2008, 2010, Oracle. All rights reserved.