philadelphia-core: Make it possible to set number of fields
This is useful when working with message templates for messages with
variable number of fields (e.g. due to repeating groups): the initial
fixed-length portion will constitute the message template while the
subsequent variable-length portion will be built from scratch every
time.
@@ -87,6 +87,15 @@ public class FIXMessage {
return count;
}
+ /**
+ * Set the number of fields.
+ *
+ * @param count the number of fields
+ */
+ public void setFieldCount(int count) {
+ this.count = count;
+ }
+
/**
* Get the value container of the first instance of a field with the
* specified tag.
