|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbiz.onixs.fix.parser.Group
public class Group
FIX Repeating Group
Method Summary | |
---|---|
boolean |
contains(int tag,
int index)
Returns whether the field with the specified tag number is set. |
String |
get(int tag,
int index)
Returns the field value as string. |
boolean |
get(int tag,
int index,
ValuePtr valuePtr)
Returns the field value. |
byte[] |
getBytes(int tag,
int index)
Returns the field value as a byte array. |
double |
getDouble(int tag,
int index)
Returns the field value as double. |
Group |
getGroup(int tag,
int index)
Returns the nested repeating group. |
int |
getInteger(int tag,
int index)
Returns the field value as integer. |
long |
getLong(int tag,
int index)
Returns the field value as long. Whether the value is set or not can be checked using contains(int, int) . |
int |
getNumberOfInstances()
Number of instances in the repeating group. |
ValuePtr |
getValuePtr(int tag,
int index)
Returns the field value. |
boolean |
remove(int tag,
int index)
Removes the field. |
boolean |
set(int tag,
int index,
byte[] value,
int valueSize)
Sets the field value. |
boolean |
set(int tag,
int index,
biz.onixs.util.ByteBuffer buffer)
Sets the field value. |
boolean |
set(int tag,
int index,
double value)
Sets the double field value. |
boolean |
set(int tag,
int index,
int value)
Sets the field value as integer. |
boolean |
set(int tag,
int index,
long value)
Sets the long field value. |
boolean |
set(int tag,
int index,
String value)
Sets the field value as string. |
boolean |
set(int tag,
int index,
ValuePtr valuePtr)
Sets the field value. |
Group |
setGroup(int numberOfInstancesTag,
int index,
int numberOfInstances)
Creates a new repeating group or changes the number of instances in the existing repeating group. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public String get(int tag, int index)
tag
- tag numberindex
- index of the repeating group instance, starts from 0
public double getDouble(int tag, int index)
tag
- tag numberindex
- index of the repeating group instance, starts from 0
ValueIsIncorrectException
- if the value can't be parsed to doublepublic long getLong(int tag, int index)
contains(int, int)
.
tag
- tag numberindex
- repeating group instance index, starts from 0
Long.MAX_VALUE
if it is not set
ValueIsIncorrectException
- if the value can't be parsed to longpublic boolean contains(int tag, int index)
tag
- field tag numberindex
- index of the repeating group instance, starts from 0
true
if the field is set, false
if the field is not set
or is not defined for this messagepublic Group getGroup(int tag, int index)
tag
- tag number of the field that defines the number of instances in this repeating group (the NoXXX field)index
- index of the repeating group instance, starts from 0
ParserException
- The tag number does not belong to the group.public byte[] getBytes(int tag, int index)
tag
- tag numberindex
- index of the repeating group instance, starts from 0
public int getInteger(int tag, int index)
tag
- tag numberindex
- index of the repeating group instance, starts from 0
ValueIsIncorrectException
- if the value can't be parsed to intpublic int getNumberOfInstances()
ParserException
public boolean remove(int tag, int index)
tag
- tag numberindex
- index of the repeating group instance, starts from 0
public boolean set(int tag, int index, String value)
tag
- tag numberindex
- index of the repeating group instance, starts from 0value
- field value
ParserException
- The tag number does not belong to the group.public boolean set(int tag, int index, int value)
tag
- tag numberindex
- index of the repeating group instance, starts from 0value
- field value
ParserException
- The tag number does not belong to the group.public Group setGroup(int numberOfInstancesTag, int index, int numberOfInstances)
numberOfInstancesTag
- tag number of the field that defines the number of instances in this repeating group
(the NoXXX field)index
- index of the repeating group instance, starts from 0numberOfInstances
- number of instances in the repeating group
ParserException
- The tag number does not belong to the group.public boolean set(int tag, int index, biz.onixs.util.ByteBuffer buffer)
tag
- tag numberindex
- index of the repeating group instance, starts from 0buffer
- field value
ParserException
- tag number does not belong to the group.public boolean set(int tag, int index, long value)
tag
- tag numberindex
- index of the repeating group instance, starts from 0value
- field value
TagNotDefinedForThisMessageTypeException
- if field with the specified tag is not defined for this messagepublic boolean set(int tag, int index, double value)
tag
- tag numberindex
- index of the repeating group instance, starts from 0value
- field value
TagNotDefinedForThisMessageTypeException
- if field with the specified tag is not defined for this messagepublic boolean set(int tag, int index, byte[] value, int valueSize)
tag
- tag numberindex
- repeating group instance index, starts from 0value
- field valuevalueSize
- field value size
TagNotDefinedForThisMessageTypeException
- if field with the specified tag is not defined for this messagepublic boolean set(int tag, int index, ValuePtr valuePtr)
tag
- tag numberindex
- repeating group instance index, starts from 0valuePtr
- field value
TagNotDefinedForThisMessageTypeException
- if field with the specified tag is not defined for this messagepublic boolean get(int tag, int index, ValuePtr valuePtr)
tag
- tag numberindex
- repeating group instance index, starts from 0valuePtr
- pointer to pass value
public ValuePtr getValuePtr(int tag, int index)
tag
- tag numberindex
- repeating group instance index, starts from 0
ValuePtr.isSet()
to check whether value is set
ParserException
- tag number does not belong to the group
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |