bea.jolt.beans
Class JoltOutputEvent

java.lang.Object
  java.util.EventObject
      bea.jolt.beans.JoltOutputEvent
All Implemented Interfaces:
java.io.Serializable

public class JoltOutputEvent
extends java.util.EventObject

JoltOutputEvent is the event class for event objects sent from JoltServiceBeans to GUI controls once the reply from the Tuxedo service has been received.

All getValue/getTextValue methods operate on output parameters only.

See Also:
Serialized Form

Field Summary
 Message message
           
 
Method Summary
 java.lang.String getTextValue(java.lang.String fieldName)
          Get the value of a field in the reply/event message as a String.
 java.lang.String getTextValue(java.lang.String fieldName, int index)
          Get the value of one occurrence of a field in the reply/event message as String.
 java.lang.String[] getTextValues(java.lang.String fieldName)
          Get all occurrences of a field in the reply/event message as Strings.
 java.lang.Object getValue(java.lang.String fieldName)
          Get the value of a field in the reply/event message using the field's native data format.
 java.lang.Object getValue(java.lang.String fieldName, int index)
          Get the value of one occurrence of a field in the reply/event message using the field's native data format.
 java.lang.Object[] getValues(java.lang.String fieldName)
          Get all occurrences of a field in the reply/event message message using the field's native data format.
 boolean isEventMessage()
          Report true if this JoltOutputEvent was constructed for a Tuxedo user event, report false it it was constructed for a service reply.
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

message

public Message message
Method Detail

isEventMessage

public boolean isEventMessage()
Report true if this JoltOutputEvent was constructed for a Tuxedo user event, report false it it was constructed for a service reply.

Returns:
true if this is a Tuxedo user event, false if this is a service reply.

getValue

public java.lang.Object getValue(java.lang.String fieldName)
Get the value of a field in the reply/event message using the field's native data format.

Parameters:
fieldName - Name of the field (FML field name).
Returns:
Value of the field in native data format.

getValue

public java.lang.Object getValue(java.lang.String fieldName,
                                 int index)
Get the value of one occurrence of a field in the reply/event message using the field's native data format.

Parameters:
fieldName - Name of the field (FML field name).
index - The occurrence index of the field.
Returns:
Value of the field in native data format.

getValues

public java.lang.Object[] getValues(java.lang.String fieldName)
Get all occurrences of a field in the reply/event message message using the field's native data format.

Parameters:
fieldName - Name of the field (FML field name).
Returns:
Array of occurrences in native data format.

getTextValue

public java.lang.String getTextValue(java.lang.String fieldName)
Get the value of a field in the reply/event message as a String.

Parameters:
fieldName - Name of the field (FML field name).
Returns:
Value of the field as String.

getTextValue

public java.lang.String getTextValue(java.lang.String fieldName,
                                     int index)
Get the value of one occurrence of a field in the reply/event message as String.

Parameters:
fieldName - Name of the field (FML field name).
index - The occurrence index of the field.
Returns:
Value of the field as String.

getTextValues

public java.lang.String[] getTextValues(java.lang.String fieldName)
Get all occurrences of a field in the reply/event message as Strings.

Parameters:
fieldName - Name of the field (FML field name).
Returns:
Array of occurrences as String array.