Oracle Data-aware Controls Reference

oracle.dacf.util.errormanager
Class ErrorMessageText

java.lang.Object
  extended byoracle.dacf.util.errormanager.ErrorMessageText
All Implemented Interfaces:
ErrorAttribute

public class ErrorMessageText
extends java.lang.Object
implements ErrorAttribute

The ErrorMessageText class is an overloaded class that defines the error message as a message text and a message ID. The class can be constructed with either a message text parameter or with message text and message ID parameters.

ErrorMessageText contains two inner classes: ErrorMessageText.MessageID to implement the message ID and ErrorMessageText.MessageText to implement the message text.


Nested Class Summary
 class ErrorMessageText.MessageId
          Inner class implementing the error message ID.
 class ErrorMessageText.MessageText
          Inner class implementing the error message text.
 
Field Summary
protected  ErrorMessageText.MessageId _id
           
protected  ErrorMessageText.MessageText _message
           
 
Constructor Summary
ErrorMessageText(java.lang.String message)
          Constructor for the error message text with only the error text.
ErrorMessageText(java.lang.String id, java.lang.String message)
          Constructor for the error message text with the message ID and error text.
 
Method Summary
 ErrorMessageText.MessageId getId()
          Returns the message ID as an error attribute.
 java.lang.String getLabel()
          Returns the label used when displaying the error.
 ErrorMessageText.MessageText getMessage()
          Returns the message text as an error attribute.
 java.lang.String toString()
          Returns the error message text as a String.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

_id

protected ErrorMessageText.MessageId _id

_message

protected ErrorMessageText.MessageText _message
Constructor Detail

ErrorMessageText

public ErrorMessageText(java.lang.String id,
                        java.lang.String message)
Constructor for the error message text with the message ID and error text.

Parameters:
id - the message ID.
message - the message text

ErrorMessageText

public ErrorMessageText(java.lang.String message)
Constructor for the error message text with only the error text.

Parameters:
message - the message text
Method Detail

toString

public java.lang.String toString()
Returns the error message text as a String.

Specified by:
toString in interface ErrorAttribute
Returns:
the error message text as a String.

getLabel

public java.lang.String getLabel()
Returns the label used when displaying the error.

Specified by:
getLabel in interface ErrorAttribute
Returns:
the label for the error message.

getId

public ErrorMessageText.MessageId getId()
Returns the message ID as an error attribute.

Returns:
an ErrorAttribute implementation containing the message ID.
See Also:
ErrorAttribute

getMessage

public ErrorMessageText.MessageText getMessage()
Returns the message text as an error attribute.

Returns:
an ErrorAttribute implementation containing the message text.
See Also:
ErrorAttribute

Oracle Data-aware Controls Reference

 

Copyright © 1997, 2003, Oracle. All rights reserved.