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.
-
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.
-
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.
-
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.
-
JoltInputEvent(Object, String, String)
- This constructor is used when the input is a single data
element and it is represented as a String.
-
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.
-
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.
-
getFieldName()
- Get the name of the field.
-
getOccurrenceCount()
- Get the number of occurrences of the field.
-
getSingleOccurrence()
- Get the position of the field.
-
getTextValue()
- Get the value as a String
-
getTextValues()
- Get the occurring values as String.
-
getValue()
- Get the value in its native representation.
-
getValues()
- Get the occurring values in its native representation.
-
isText()
- Returns true if the field value is String, otherwise it returns false.
-
isVector()
- Returns true if the field has multiple occurrences,
otherwise it returns false.
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.
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.
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.
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.
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.
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.
getValue
public Object getValue()
- Get the value in its native representation.
- Returns:
- Value of the field.
getValues
public Object[] getValues()
- Get the occurring values in its native representation.
- Returns:
- The occurrences of the field.
getTextValue
public String getTextValue()
- Get the value as a String
- Returns:
- The value of the field as a String.
getTextValues
public String[] getTextValues()
- Get the occurring values as String.
- Returns:
- The occurrences of the field as a String.
getFieldName
public String getFieldName()
- Get the name of the field.
- Returns:
- Name of the field.
getOccurrenceCount
public int getOccurrenceCount()
- Get the number of occurrences of the field.
- Returns:
- Number of occurrences.
getSingleOccurrence
public int getSingleOccurrence()
- Get the position of the field. This will be
- 0 for single data elements
- i for elements with multiple occurrences of which only one was set
- The array size for multiple occurrences.
- Returns:
- position
isText
public boolean isText()
- Returns true if the field value is String, otherwise it returns false.
- Returns:
- true or false
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