|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.bea.wli.config.resource.Diagnostics
public class Diagnostics
Container for a collection of Diagnostic
entries relevant to a particular resource.
Constructor Summary | |
---|---|
Diagnostics(Ref ref)
Constructor for creating a Diagnostics object with an empty collection of Diagnostic objects. |
|
Diagnostics(Ref ref,
Collection<Diagnostic> diagnostics)
Constructor for creating a Diagnostics object with the given initial set of Diagnostic object. |
Method Summary | |
---|---|
void |
add(Diagnostic d)
Add a diagnostic. |
void |
addAll(Collection<Diagnostic> dlist)
add a list of diagnostic objects. |
Set<Diagnostic> |
getDiagnostics()
Returns an immutable view of all diagnostic objects contained |
Diagnostic |
getFirstError()
returns the first diagnostic entry whose severity is either Diagnostic.Severity.CannotCommit
or Diagnostic.Severity.CannotCreate . |
Ref |
getRef()
returns the reference for the resource which this diagnostics relate to |
Diagnostic.Severity |
getSeverity()
Returns the aggregated severity of all the diagnostic objects contained. |
String |
toString()
Returns a string representation of this diagnostics object |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Diagnostics(Ref ref)
Diagnostic
objects.
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.public Diagnostics(Ref ref, Collection<Diagnostic> diagnostics)
Diagnostic
object.
More diagnostic objects can be added via the add(com.bea.wli.config.resource.Diagnostic)
method.
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 Detail |
---|
public Diagnostic.Severity getSeverity()
Diagnostic.Severity.combine(com.bea.wli.config.resource.Diagnostic.Severity, com.bea.wli.config.resource.Diagnostic.Severity)
public void add(Diagnostic d)
d
- public void addAll(Collection<Diagnostic> dlist)
dlist
- public Set<Diagnostic> getDiagnostics()
public Diagnostic getFirstError()
Diagnostic.Severity.CannotCommit
or Diagnostic.Severity.CannotCreate
. If there is no such entry, returns null.
public Ref getRef()
public String toString()
toString
in class Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |