Package com.bea.wli.config.resource
Class Diagnostics
java.lang.Object
com.bea.wli.config.resource.Diagnostics
- All Implemented Interfaces:
Serializable
Container for a collection of
Diagnostic entries relevant to a particular resource.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDiagnostics(Ref ref) Constructor for creating a Diagnostics object with an empty collection ofDiagnosticobjects.Diagnostics(Ref ref, Collection<Diagnostic> diagnostics) Constructor for creating a Diagnostics object with the given initial set ofDiagnosticobject. -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(Diagnostic d) Add a diagnostic.voidaddAll(Collection<Diagnostic> dlist) add a list of diagnostic objects.booleanReturns an immutable view of all diagnostic objects containedreturns the first diagnostic entry whose severity is eitherDiagnostic.Severity.CannotCommitorDiagnostic.Severity.CannotCreate.getRef()returns the reference for the resource which this diagnostics relate toReturns the aggregated severity of all the diagnostic objects contained.inthashCode()toString()Returns a string representation of this diagnostics object
-
Constructor Details
-
Diagnostics
Constructor for creating a Diagnostics object with an empty collection ofDiagnosticobjects.- Parameters:
ref- the reference to the resource which this collection of diagnostics relate to. Cannot be null. This method does not check the existence of the given resource.
-
Diagnostics
Constructor for creating a Diagnostics object with the given initial set ofDiagnosticobject. More diagnostic objects can be added via theadd(com.bea.wli.config.resource.Diagnostic)method.- Parameters:
ref- the reference to the resource which this collection of diagnostics relate to. Cannot be null. This method does not check the existence of the given resource.diagnostics- initial collection of diagnostics. Cannot be null. A copy of this collection is used. Therefore unmodifiable collections can be passed.
-
-
Method Details
-
getSeverity
Returns the aggregated severity of all the diagnostic objects contained. -
add
Add a diagnostic. The aggregate severity of this container is properly adjusted.- Parameters:
d-
-
addAll
add a list of diagnostic objects.- Parameters:
dlist-
-
getDiagnostics
Returns an immutable view of all diagnostic objects contained -
getFirstError
returns the first diagnostic entry whose severity is eitherDiagnostic.Severity.CannotCommitorDiagnostic.Severity.CannotCreate. If there is no such entry, returns null. -
getRef
returns the reference for the resource which this diagnostics relate to -
toString
Returns a string representation of this diagnostics object -
hashCode
public int hashCode() -
equals
-