MultipleValueString

In this example, we demonstrate how to use FIXMultipleValueString.

Note MultipleValueString can only be created by calling FIXMessageComponent.createMultipleValueString. Never try to create create an instance of MultipleValueString by directly calling the default constructor.

    // Create a "NewOrderSingle" message.
    FIXMessage message = session.createMessage(MsgTypes.NewOrderSingle);
    // Create the multiple string
    FIXMultipleValueString execInst = message.createMultipleValueString(Tags.ExecInst);
    // Add values
    execInst.add(ValidValues.ExecInst.NotHeld);
    execInst.add(ValidValues.ExecInst.OkCross);
    execInst.add(ValidValues.ExecInst.CancelOnSysFail);
    message.setValue(Tags.ExecInst, execInst);
    // TODO: Set other fields