Broker 10.5 | webMethods Broker Documentation | webMethods Broker Client Java API Programmer's Guide | Creating and Initializing Events | Specifying Field Names
 
Specifying Field Names
Many of the methods offered by BrokerEvent require a field name parameter. How you specify a field name depends on the type of field being referenced and the method being used. The example below shows a hypothetical event type that contains several different types of data fields.
Note:
Event field names are case sensitive.
Sample::StructEvent {
string title;
float seqA[];
int seqB[][];
struct structA{
BrokerDate date;
int seqC[] [];
}
struct structB{
BrokerDate time;
struct emp {
string name;
string ssn;
}
}
struct structC[] {
BrokerDate date;
int seqD[] [];
}
The table below shows the field names you could specify to reference the various fields within the event type shown in the example above.
Field Name
Description
Related BrokerEvent Methods
title
The string value.
getStringValue setStringValue
seqA
The entire sequence of float values.
getSequenceField setSequenceField
seqA[0]
First float value in seqA
getFloatField setFloatField
seqA[]
Used to obtain the field's type when the number of elements in the sequence is not known.
getFieldType
seqB[0][0]
First int value in seqB.
getIntField setIntField
seqB[][]
Used to obtain the field's type when the number of elements in the sequence is not known.
getFieldType
structA
The entire structA structure.
getStructFieldAsEvent setStructFieldFromEvent
structA.date
BrokerDate value within structA.
getDateField setDateField
structA.seqC[0][0]
First int value in seqC, within structA.
getIntegerField setIntegerField
structA.seqC[][]
Used to obtain the field's type when the number of elements in the sequence is not known.
getFieldType
structB
The entire structB structure.
getStructFieldAsEvent setStructFieldFromEvent
structB.time
BrokerDate within structB.
getDateField setDateField
structB.emp
The structure within structB.
getStructFieldAsEvent setStructFieldFromEvent
structB.emp.name
The string within the emp structure, within structB.
getStringField setStringField
structC
The entire structure sequence structC.
getStructSeqFieldAsEvents setStructSeqFieldFromEvents
structC[0].date
BrokerDate within the first structure in the structC sequence.
getDateField setDateField
structC[].date
Used to obtain the field's type when the number of elements in the sequence structC is not known.
getFieldType
structC[0].seqD[0][0]
First int value in seqD, within the first structure in the structC sequence.
getIntegerField setIntegerField
structC[].seqD[][]
Used to obtain the field's type when the number of elements in the sequences structC and seqD are not known.
getFieldType