oracle.dacf.util.errormanager
Class ErrorSeverity
java.lang.Object
|
+--oracle.dacf.util.errormanager.ErrorSeverity
- All Implemented Interfaces:
- ErrorAttribute
- Direct Known Subclasses:
- DacfSeverity, StyleSeverity
- public class ErrorSeverity
- extends java.lang.Object
- implements ErrorAttribute
The ErrorSeverity class definines the text to be used for a given
error severity.
Subclass ErrorSeverity to define your own severities.
This class defines two severities:
- ErrorSeverity.ALL_SEVERITIES - maps all error severities.
- ErrorSeverity.UNDEFINED - indicates an uncategorized severity.
Constructor Summary |
protected |
ErrorSeverity(java.lang.String severity)
Protected constructor--creates a severity using the default icon. |
Method Summary |
java.lang.String |
getLabel()
Returns the label to use when displaying the severity. |
java.lang.String |
toString()
Returns the text string describing the error severity. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ALL_SEVERITIES
public static final ErrorSeverity ALL_SEVERITIES
- Used by filters to map all error severities.
UNDEFINED
public static final ErrorSeverity UNDEFINED
- Used to indicate an uncategorized severity.
_severity
protected java.lang.String _severity
ErrorSeverity
protected ErrorSeverity(java.lang.String severity)
- Protected constructor--creates a severity using the default icon.
- Parameters:
severity
- severity text
toString
public java.lang.String toString()
- Returns the text string describing the error severity.
- Specified by:
toString
in interface ErrorAttribute
- Overrides:
toString
in class java.lang.Object
- Returns:
- error severity text as a String.
getLabel
public java.lang.String getLabel()
- Returns the label to use when displaying the severity.
- Specified by:
getLabel
in interface ErrorAttribute
- Returns:
- the label to display for error severity.