Open topic with navigation

TIBCO Rendezvous® 8.8.0

# 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
`field` | Create an independent copy of this field.
`name` | Create a field with this name. To create a field with no name, supply `null`.
`id` | Create a field with this identifier. Identifiers must be in the range [0-65535]; zero is a special value that indicates no identifier.
`data` | Create a field with this data value. The data value must be non-`null`.
`type` | 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.

## See Also

TibrvMsg.addField()

TibrvMsg.updateField()

Did you find this helpful?

Yes No
Great!
Thanks for taking the time to give us some feedback.
Sorry about that

Why wasn't this helpful? (check all that apply)

Could not find what I was looking for
Instructions confusing or unclear
Instructions did not work

Want to tell us more?

Please select at least one option or provide details about the issue!!

Error occurred while submitting feedback.

Error2 occurred while submitting feedback.

TIBCO Rendezvous®

Copyright © 1997-2025. Cloud Software Group, Inc. All Rights Reserved.