Oracle Data-aware Controls Reference

oracle.dacf.util.errormanager
Class ErrorType

java.lang.Object
  |
  +--oracle.dacf.util.errormanager.ErrorType
All Implemented Interfaces:
ErrorAttribute
Direct Known Subclasses:
DacfType, StyleType

public class ErrorType
extends java.lang.Object
implements ErrorAttribute

The ErrorType class provides the base methods for defining error types or categories. This class defines two types of errors:

Subclass ErrorType to define your own error types.


Field Summary
protected  java.lang.String _type
           
static ErrorType ALL_TYPES
          Used by filters to map all error types.
static ErrorType UNDEFINED
          Used to indicate an uncategorized error type.
 
Constructor Summary
protected ErrorType(java.lang.String type)
          Protected constructor used to create an error type.
 
Method Summary
 java.lang.String getLabel()
          Returns the label used when displaying the type on the UI.
 java.lang.String toString()
          Returns the string describing the type or category of the error.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ALL_TYPES

public static final ErrorType ALL_TYPES
Used by filters to map all error types.

UNDEFINED

public static final ErrorType UNDEFINED
Used to indicate an uncategorized error type.

_type

protected java.lang.String _type
Constructor Detail

ErrorType

protected ErrorType(java.lang.String type)
Protected constructor used to create an error type.
Parameters:
type - name of the error type.
Method Detail

toString

public java.lang.String toString()
Returns the string describing the type or category of the error.
Specified by:
toString in interface ErrorAttribute
Overrides:
toString in class java.lang.Object
Returns:
error type as a String.

getLabel

public java.lang.String getLabel()
Returns the label used when displaying the type on the UI.
Specified by:
getLabel in interface ErrorAttribute
Returns:
the label displayed for this error type.

Oracle Data-aware Controls Reference