|
From: <cai...@ho...> - 2007-09-24 11:54:17
|
Hi, All Recently, I notice that, a article of "Using Message Metadata" at http://www.quickfixj.org/confluence/display/qfj/Using+Message+Metadata .In this article, I have a question about how to create a new Group. At the final code, it uses: Group g = new Group(groupCountTag, 0); to create a new group. But at Group.java, we only have a constructor: public Group(int field, int delim){this(field, delim, new int[] { delim });} to create a group with the specified count and delimeter fields. @param field is the count tag number; @param delim is the delimeter tag number (first group field). My question is: when received repeating group, we need to create a new group and we don't know whick type group it is, so we can't use constructor like: new NewOrderCross.NoSides(); But is it advisable to let @param delim = 0? Though, I know it make few difference,even we can let delim = 1,2,3,…… and the only difference is that: field ordering may be nonentity or different. But it is in breach of the description of "@param delim is the delimeter tag number (first group field)."? Do you think so? So, I think, here, we can use the method "Group create(String beginString, String msgType, int correspondingFieldID)" at MessageFactory.java. Or we can have a new constructor:Group() / Group(correspondingFieldID) without field ordering , like the constructor: message();. How do you think this question? Am I understood? Any questions please let me know:) Thank you very much! Regards,Qi Cai _________________________________________________________________ 用 Live Search 搜尽天下资讯! http://www.live.com/?searchOnly=true |