All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class bea.jolt.beans.JoltInputEvent

java.lang.Object
   |
   +----java.util.EventObject
           |
           +----bea.jolt.beans.JoltInputEvent

public class JoltInputEvent
extends EventObject
JoltInputEvent carries information about input data to JoltServiceBeans. An instance of JoltInputEvent represents a single input field (possibly with multiple occurrences) to a TUXEDO service. Typically, this event is sent by a GUI control when its data content changes.


Constructor Index

 o JoltInputEvent(Object, String, Object)
This constructor is used when the input is a single data element and it is represented in a native data format.
 o JoltInputEvent(Object, String, Object, int)
This constructor is used when the input is a data element with multiple occurrences, but only one occurrence is to be set, and it is represented in a native data format.
 o JoltInputEvent(Object, String, Object[])
This constructor is used when the input is a data element with multiple occurrences and it is represented in a native data format.
 o JoltInputEvent(Object, String, String)
This constructor is used when the input is a single data element and it is represented as a String.
 o JoltInputEvent(Object, String, String, int)
This constructor is used when the input is a data element with multiple occurrences, but only one occurrence is to be set, and it is represented as a String.
 o JoltInputEvent(Object, String, String[])
This constructor is used when the input is a data element with multiple occurrences and it is represented as an array of Strings.

Method Index

 o getFieldName()
Get the name of the field.
 o getOccurrenceCount()
Get the number of occurrences of the field.
 o getSingleOccurrence()
Get the position of the field.
 o getTextValue()
Get the value as a String
 o getTextValues()
Get the occurring values as String.
 o getValue()
Get the value in its native representation.
 o getValues()
Get the occurring values in its native representation.
 o isText()
Returns true if the field value is String, otherwise it returns false.
 o isVector()
Returns true if the field has multiple occurrences, otherwise it returns false.

Constructors

 o JoltInputEvent
 public JoltInputEvent(Object source,
                       String fieldName,
                       Object value)
This constructor is used when the input is a single data element and it is represented in a native data format.

Parameters:
source - Event source.
fieldName - Name of the input field (FML name).
value - Value of the field in a native data type, such as Integer or Float.
 o JoltInputEvent
 public JoltInputEvent(Object source,
                       String fieldName,
                       Object value,
                       int pos)
This constructor is used when the input is a data element with multiple occurrences, but only one occurrence is to be set, and it is represented in a native data format.

Parameters:
source - Event source.
fieldName - Name of the input field (FML name).
value - Value of the field in a native data type, such as Integer or Float.
pos - The position of the data element.
 o JoltInputEvent
 public JoltInputEvent(Object source,
                       String fieldName,
                       Object values[])
This constructor is used when the input is a data element with multiple occurrences and it is represented in a native data format.

Parameters:
source - Event source.
fieldName - Name of the input field (FML name).
values - Array of occurrences of the field in a native data type, such as Integer or Float.
 o JoltInputEvent
 public JoltInputEvent(Object source,
                       String fieldName,
                       String textValue)
This constructor is used when the input is a single data element and it is represented as a String. The JoltInputEvent object will perform the necessary data conversion.

Parameters:
source - Event source.
fieldName - Name of the input field (FML name).
textValue - Value of the field as a String.
 o JoltInputEvent
 public JoltInputEvent(Object source,
                       String fieldName,
                       String textValue,
                       int pos)
This constructor is used when the input is a data element with multiple occurrences, but only one occurrence is to be set, and it is represented as a String. The JoltInputEvent object will perform the necessary data conversion.

Parameters:
source - Event source.
fieldName - Name of the input field (FML name).
textValue - Value of the field as a String.
pos - The position of the data element.
 o JoltInputEvent
 public JoltInputEvent(Object source,
                       String fieldName,
                       String textValues[])
This constructor is used when the input is a data element with multiple occurrences and it is represented as an array of Strings. The JoltInputEvent object will perform the necessary data conversion.

Parameters:
source - Event source.
fieldName - Name of the input field (FML name).
textValues - Array of occurrences of the field as String.

Methods

 o getValue
 public Object getValue()
Get the value in its native representation.

Returns:
Value of the field.
 o getValues
 public Object[] getValues()
Get the occurring values in its native representation.

Returns:
The occurrences of the field.
 o getTextValue
 public String getTextValue()
Get the value as a String

Returns:
The value of the field as a String.
 o getTextValues
 public String[] getTextValues()
Get the occurring values as String.

Returns:
The occurrences of the field as a String.
 o getFieldName
 public String getFieldName()
Get the name of the field.

Returns:
Name of the field.
 o getOccurrenceCount
 public int getOccurrenceCount()
Get the number of occurrences of the field.

Returns:
Number of occurrences.
 o getSingleOccurrence
 public int getSingleOccurrence()
Get the position of the field. This will be

Returns:
position
 o isText
 public boolean isText()
Returns true if the field value is String, otherwise it returns false.

Returns:
true or false
 o isVector
 public boolean isVector()
Returns true if the field has multiple occurrences, otherwise it returns false.

Returns:
true or false

All Packages  Class Hierarchy  This Package  Previous  Next  Index