|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.latencybusters.pdm.PDMField
public class PDMField
A field is element in the message that contains the value and a reference
back to the field information that was created in the PDMDefinition
Field Summary | |
---|---|
protected static int |
OPT_FIX_HEADER_LEN
|
protected static int |
OPT_VAR_HEADER_LEN
|
protected static int |
REQ_FIX_HEADER_LEN
|
protected static int |
REQ_VAR_HEADER_LEN
|
protected static int |
UNICODE_CHAR_LEN
|
Constructor Summary | |
---|---|
PDMField(PDMFieldInfo info,
com.latencybusters.pdm.PDMSection section,
int offset,
PDMSerializer ser,
PDMDeserializer deser)
|
Method Summary | |
---|---|
protected void |
createBufferIfNeeded()
|
byte[][] |
getBlobArrayValue()
Gets the actual value that was set in the field as Blob[] |
byte[] |
getBlobValue()
Gets the actual value that was set in the field as Blob |
boolean[] |
getBooleanArrayValue()
Gets the actual value that was set in the field as Boolean[] |
boolean |
getBooleanValue()
Gets the actual value that was set in the field as Boolean |
PDMDecimal[] |
getDecimalArrayValue()
Gets the actual value that was set in the field as PDMDecimal[] |
PDMDecimal |
getDecimalValue()
Gets the actual value that was set in the field as PDMDecimal |
double[] |
getDoubleArrayValue()
Gets the actual value that was set in the field as Double[] |
double |
getDoubleValue()
Gets the actual value that was set in the field as Double |
PDMFieldInfo |
getFieldInfo()
|
PDMFieldType |
getFieldType()
|
float[] |
getFloatArrayValue()
Gets the actual value that was set in the field as Float[] |
float |
getFloatValue()
Gets the actual value that was set in the field as Float |
int |
getId()
|
short[] |
getInt16ArrayValue()
Gets the actual value that was set in the field as Int16[] |
short |
getInt16Value()
Gets the actual value that was set in the field as Int16 |
int[] |
getInt32ArrayValue()
Gets the actual value that was set in the field as Int32[] |
int |
getInt32Value()
Gets the actual value that was set in the field as Int32 |
long[] |
getInt64ArrayValue()
Gets the actual value that was set in the field as Int64[] |
long |
getInt64Value()
Gets the actual value that was set in the field as Int64 |
byte[] |
getInt8ArrayValue()
Gets the actual value that was set in the field as Int8[] |
byte |
getInt8Value()
Gets the actual value that was set in the field as Int8 |
int |
getIntName()
|
protected int |
getLenIncludingHeader()
Gets the length in bytes of the field or -1 if it is variable length and cannot be determined yet |
PDMMessage[] |
getMessageArrayValue()
Gets the actual value that was set in the field as PDMMessage[] |
PDMMessage |
getMessageValue()
Gets the actual value that was set in the field as PDMMessage |
protected int |
getOffset()
|
protected com.latencybusters.pdm.PDMSection |
getSection()
|
java.lang.String[] |
getStringArrayValue()
Gets the actual value that was set in the field as String[] |
java.lang.String |
getStringValue()
Gets the actual value that was set in the field as String (for FIX_STRING, STRING, FIX_UNICODE, and UNICODE) |
java.lang.String |
getStrName()
|
PDMTimestamp[] |
getTimestampArrayValue()
Gets the actual value that was set in the field as PDMTimestamp[] |
PDMTimestamp |
getTimestampValue()
Gets the actual value that was set in the field as PDMTimestamp |
int[] |
getUInt16ArrayValue()
Gets the actual value that was set in the field as UInt16[] |
int |
getUInt16Value()
Gets the actual value that was set in the field as UInt16 |
long[] |
getUInt32ArrayValue()
Gets the actual value that was set in the field as UInt32[] |
long |
getUInt32Value()
Gets the actual value that was set in the field as UInt32 |
java.math.BigInteger[] |
getUInt64ArrayValue()
Gets the actual value that was set in the field as UInt64[] |
java.math.BigInteger |
getUInt64Value()
Gets the actual value that was set in the field as UInt64 |
short[] |
getUInt8ArrayValue()
Gets the actual value that was set in the field as UInt8[] |
short |
getUInt8Value()
Gets the actual value that was set in the field as UInt8 |
java.lang.Object |
getValue()
Gets the actual value that was set in the field. |
protected int |
getVariableLen()
|
protected boolean |
isByteSwap()
|
boolean |
isValueSet()
|
protected void |
setByteSwap(boolean byteSwap)
|
protected void |
setOffset(int offset)
|
protected void |
setSection(com.latencybusters.pdm.PDMSection section)
|
void |
setValue(java.math.BigInteger value)
Sets the field value to the value passed |
void |
setValue(java.math.BigInteger[] values)
Sets the field value to the array value passed |
void |
setValue(boolean value)
Sets the field value to the value passed |
void |
setValue(boolean[] values)
Sets the field value to the array value passed |
void |
setValue(byte value)
Sets the field value to the value passed |
void |
setValue(byte[] values)
Sets the field value to the array value passed |
void |
setValue(byte[][] values)
Sets the field value to the array value passed |
void |
setValue(double value)
Sets the field value to the value passed |
void |
setValue(double[] values)
Sets the field value to the array value passed |
void |
setValue(float value)
Sets the field value to the value passed |
void |
setValue(float[] values)
Sets the field value to the array value passed |
void |
setValue(int value)
Sets the field value to the value passed |
void |
setValue(int[] values)
Sets the field value to the array value passed |
void |
setValue(long value)
Sets the field value to the value passed |
void |
setValue(long[] values)
Sets the field value to the array value passed |
void |
setValue(PDMDecimal value)
Sets the field value to the value passed |
void |
setValue(PDMDecimal[] values)
Sets the field value to the array value passed |
void |
setValue(PDMMessage value)
Sets the field value to the value passed |
void |
setValue(PDMMessage[] values)
Sets the field value to the array value passed |
void |
setValue(PDMTimestamp value)
Sets the field value to the value passed |
void |
setValue(PDMTimestamp[] values)
Sets the field value to the array value passed |
void |
setValue(short value)
Sets the field value to the value passed |
void |
setValue(short[] values)
Sets the field value to the array value passed |
void |
setValue(java.lang.String value)
Sets the field value to the value passed |
void |
setValue(java.lang.String[] values)
Sets the field value to the array value passed |
protected void |
setValueSet(boolean valueSet)
|
protected void |
setVariableLen(int variableLen)
|
protected void |
swapBytes()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final int REQ_FIX_HEADER_LEN
protected static final int REQ_VAR_HEADER_LEN
protected static final int OPT_FIX_HEADER_LEN
protected static final int OPT_VAR_HEADER_LEN
protected static final int UNICODE_CHAR_LEN
Constructor Detail |
---|
public PDMField(PDMFieldInfo info, com.latencybusters.pdm.PDMSection section, int offset, PDMSerializer ser, PDMDeserializer deser)
Method Detail |
---|
public PDMFieldInfo getFieldInfo()
public boolean isValueSet()
public int getId()
public int getIntName()
public java.lang.String getStrName()
public PDMFieldType getFieldType()
protected int getOffset()
protected void setOffset(int offset)
protected com.latencybusters.pdm.PDMSection getSection()
protected void setSection(com.latencybusters.pdm.PDMSection section)
protected int getVariableLen()
protected void setVariableLen(int variableLen)
protected void setValueSet(boolean valueSet)
protected boolean isByteSwap()
protected void setByteSwap(boolean byteSwap)
protected void createBufferIfNeeded()
protected void swapBytes()
protected int getLenIncludingHeader()
public java.lang.Object getValue()
public boolean getBooleanValue()
public byte getInt8Value()
public short getUInt8Value()
public short getInt16Value()
public int getUInt16Value()
public int getInt32Value()
public long getUInt32Value()
public long getInt64Value()
public java.math.BigInteger getUInt64Value()
public float getFloatValue()
public double getDoubleValue()
public PDMDecimal getDecimalValue()
public PDMTimestamp getTimestampValue()
public java.lang.String getStringValue()
public byte[] getBlobValue()
public PDMMessage getMessageValue()
public boolean[] getBooleanArrayValue()
public byte[] getInt8ArrayValue()
public short[] getUInt8ArrayValue()
public short[] getInt16ArrayValue()
public int[] getUInt16ArrayValue()
public int[] getInt32ArrayValue()
public long[] getUInt32ArrayValue()
public long[] getInt64ArrayValue()
public java.math.BigInteger[] getUInt64ArrayValue()
public float[] getFloatArrayValue()
public double[] getDoubleArrayValue()
public PDMDecimal[] getDecimalArrayValue()
public PDMTimestamp[] getTimestampArrayValue()
public java.lang.String[] getStringArrayValue()
public byte[][] getBlobArrayValue()
public PDMMessage[] getMessageArrayValue()
public void setValue(boolean value)
value
- public void setValue(byte value)
value
- public void setValue(short value)
value
- public void setValue(int value)
value
- public void setValue(long value)
value
- public void setValue(java.math.BigInteger value)
value
- public void setValue(float value)
value
- public void setValue(double value)
value
- public void setValue(PDMDecimal value)
value
- public void setValue(PDMTimestamp value)
value
- public void setValue(java.lang.String value)
value
- public void setValue(PDMMessage value)
value
- public void setValue(boolean[] values)
values
- public void setValue(byte[] values)
values
- public void setValue(short[] values)
values
- public void setValue(int[] values)
values
- public void setValue(long[] values)
values
- public void setValue(java.math.BigInteger[] values)
values
- public void setValue(float[] values)
values
- public void setValue(double[] values)
values
- public void setValue(PDMDecimal[] values)
values
- public void setValue(PDMTimestamp[] values)
values
- public void setValue(java.lang.String[] values)
values
- public void setValue(byte[][] values)
values
- public void setValue(PDMMessage[] values)
values
-
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |