TibrvMsgField()
Constructor
Declaration
TibrvMsgField
()TibrvMsgField
(TibrvMsgField field)TibrvMsgField
(
java.lang.String name,
java.lang.Object data,
short type,
int id)TibrvMsgField
(
java.lang.String name,
java.lang.Object data,
short type)TibrvMsgField
(
java.lang.String name,
java.lang.Object data)
Purpose
Create a message field object.
Method Forms
With no arguments, create an empty field (no name, no identifier, no data, no type).
With a field argument, create an independent copy of the field.
Name, identifier, data and type arguments contribute to the contents of the field object.
Remarks
This constructor does not verify that the data and type of the field are consistent. Methods that add the field object into a message verify consistency (for example TibrvMsg.addField() and TibrvMsg.updateField()).
Parameter |
Description |
|
Create an independent copy of this field. |
|
Create a field with this name. To create a field with no name, supply |
|
Create a field with this identifier. Identifiers must be in the range [0-65535]; zero is a special value that indicates no identifier. |
|
Create a field with this data value. The data value must be non- |
|
Create a field with this type. For a list of types, see Datatype Constants. If absent, the default type is TibrvMsg.DEFAULT, which instructs the methods TibrvMsg.addField() and TibrvMsg.updateField() to use the default type corresponding to the data value. |