public class Field extends Object implements FixFieldInterface
| Modifier and Type | Field and Description |
|---|---|
protected ByteBufferBytes |
fieldData |
protected CharSequence |
name |
protected int |
number |
protected CharSequence |
required |
protected FixFieldTypeInterface |
type |
protected int |
valueSize |
| Constructor and Description |
|---|
Field() |
| Modifier and Type | Method and Description |
|---|---|
ByteBufferBytes |
getFieldData() |
int |
getFieldDataPostion()
Position of this field's ByteBufferBytes
|
static byte |
getMultiValueDelim()
If this field is repeated inside the FIX tag, use this delimiter for parsing.
|
CharSequence |
getName()
Returns corresponding fix field name as per FixConstants.fieldsName[@number] for this message
|
int |
getNumber()
Returns corresponding fix field ID as per FixConstants.fieldsNumber[@fieldID--used by parser]
for this message
|
CharSequence |
getRequired() |
FixFieldTypeInterface |
getType() |
void |
reset()
Resets ByteBufferBytes for this FIX field.
|
void |
setFieldData(byte[] bytes)
Update ByteBufferBytes field data object
|
void |
setFieldData(ByteBufferBytes bytes) |
void |
setName(CharSequence value)
Sets corresponding fix field name as per FixConstants.fieldsName[@number] for this message
|
void |
setNumber(int value)
Sets corresponding fix field ID as per FixConstants.fieldsNumber[@fieldID--used by parser]
|
void |
setRequired(CharSequence value) |
void |
setType(FixFieldTypeInterface value) |
Field |
setValueSize(int valueSize) |
protected CharSequence name
protected int number
protected CharSequence required
protected FixFieldTypeInterface type
protected int valueSize
protected ByteBufferBytes fieldData
public Field setValueSize(int valueSize)
public CharSequence getName()
getName in interface FixFieldInterfacepublic void setName(CharSequence value)
setName in interface FixFieldInterfacepublic int getNumber()
getNumber in interface FixFieldInterfacepublic void setNumber(int value)
setNumber in interface FixFieldInterfacepublic CharSequence getRequired()
getRequired in interface FixFieldInterfacepublic void setRequired(CharSequence value)
setRequired in interface FixFieldInterfacepublic FixFieldTypeInterface getType()
getType in interface FixFieldInterfacepublic void setType(FixFieldTypeInterface value)
setType in interface FixFieldInterfacepublic ByteBufferBytes getFieldData()
getFieldData in interface FixFieldInterfacepublic void setFieldData(byte[] bytes)
bytes - - byte representation of object datapublic void setFieldData(ByteBufferBytes bytes)
public static byte getMultiValueDelim()
public void reset()
FixFieldInterfacereset in interface FixFieldInterfacepublic int getFieldDataPostion()
Copyright © 2015. All rights reserved.