|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.latencybusters.pdm.PDMMessage
public class PDMMessage
A PDM message consists of a definition and the corresponding
optional and required fields as specified by the definition.
Use toBytes() to serialize a message to bytes or
parse(byte[]) to deserialize a message from bytes.
| Field Summary | |
|---|---|
static int |
VERSION_POLICY_BEST
|
static int |
VERSION_POLICY_EXACT
|
| Constructor Summary | |
|---|---|
PDMMessage()
Empty constructor can be used when the PDMDefinition
is not available. |
|
PDMMessage(int definitionId,
int versionMajor,
int versionMinor)
Creates a message from a finalized definition by looking it up in the PDMDefinitionCache by the id passed |
|
PDMMessage(PDMDefinition definition)
Creates a message from a finalized PDMDefinition |
|
| Method Summary | |
|---|---|
PDMFieldIterator |
createFieldIterator()
Creates a new PDMFieldIterator to traverse
through the PDMFields |
protected int |
getDataSegmentLen()
|
PDMDefinition |
getDefinition()
|
PDMDeserializer |
getDeserializer()
|
protected java.util.Collection<PDMField> |
getFields()
|
java.lang.Object |
getFieldValue(PDMFieldInfo fieldInfo)
Gets a field value by using the PDMFieldInfo handle from
the PDMDefinition |
byte[] |
getFieldValueAsBlob(PDMFieldInfo fieldInfo)
Gets the field value by using the PDMFieldInfo handle from
the PDMDefinition as a byte[] |
byte[][] |
getFieldValueAsBlobArray(PDMFieldInfo fieldInfo)
Gets the field value by using the PDMFieldInfo handle from
the PDMDefinition as a an array of blobs |
boolean |
getFieldValueAsBoolean(PDMFieldInfo fieldInfo)
Gets the field value by using the PDMFieldInfo handle from
the PDMDefinition as a boolean |
boolean[] |
getFieldValueAsBooleanArray(PDMFieldInfo fieldInfo)
Gets the field value by using the PDMFieldInfo handle from
the PDMDefinition as a boolean[] |
PDMDecimal |
getFieldValueAsDecimal(PDMFieldInfo fieldInfo)
Gets the field value by using the PDMFieldInfo handle from
the PDMDefinition as a PDMDecimal |
PDMDecimal[] |
getFieldValueAsDecimalArray(PDMFieldInfo fieldInfo)
Gets the field value by using the PDMFieldInfo handle from
the PDMDefinition as a PDMDecimal[] |
double |
getFieldValueAsDouble(PDMFieldInfo fieldInfo)
Gets the field value by using the PDMFieldInfo handle from
the PDMDefinition as a double |
double[] |
getFieldValueAsDoubleArray(PDMFieldInfo fieldInfo)
Gets the field value by using the PDMFieldInfo handle from
the PDMDefinition as a double[] |
float |
getFieldValueAsFloat(PDMFieldInfo fieldInfo)
Gets the field value by using the PDMFieldInfo handle from
the PDMDefinition as a float |
float[] |
getFieldValueAsFloatArray(PDMFieldInfo fieldInfo)
Gets the field value by using the PDMFieldInfo handle from
the PDMDefinition as a float[] |
short |
getFieldValueAsInt16(PDMFieldInfo fieldInfo)
Gets the field value by using the PDMFieldInfo handle from
the PDMDefinition as a short |
short[] |
getFieldValueAsInt16Array(PDMFieldInfo fieldInfo)
Gets the field value by using the PDMFieldInfo handle from
the PDMDefinition as a short[] |
int |
getFieldValueAsInt32(PDMFieldInfo fieldInfo)
Gets the field value by using the PDMFieldInfo handle from
the PDMDefinition as an int |
int[] |
getFieldValueAsInt32Array(PDMFieldInfo fieldInfo)
Gets the field value by using the PDMFieldInfo handle from
the PDMDefinition as a int[] |
long |
getFieldValueAsInt64(PDMFieldInfo fieldInfo)
Gets the field value by using the PDMFieldInfo handle from
the PDMDefinition as a long |
long[] |
getFieldValueAsInt64Array(PDMFieldInfo fieldInfo)
Gets the field value by using the PDMFieldInfo handle from
the PDMDefinition as a long[] |
byte |
getFieldValueAsInt8(PDMFieldInfo fieldInfo)
Gets the field value by using the PDMFieldInfo handle from
the PDMDefinition as a byte |
byte[] |
getFieldValueAsInt8Array(PDMFieldInfo fieldInfo)
Gets the field value by using the PDMFieldInfo handle from
the PDMDefinition as a byte[] |
PDMMessage |
getFieldValueAsMessage(PDMFieldInfo fieldInfo)
Gets the field value by using the PDMFieldInfo handle from
the PDMDefinition as a PDMMessage |
PDMMessage[] |
getFieldValueAsMessageArray(PDMFieldInfo fieldInfo)
Gets the field value by using the PDMFieldInfo handle from
the PDMDefinition as a PDMMessage[] |
java.lang.String |
getFieldValueAsString(PDMFieldInfo fieldInfo)
Gets the field value by using the PDMFieldInfo handle from
the PDMDefinition as a String |
java.lang.String[] |
getFieldValueAsStringArray(PDMFieldInfo fieldInfo)
Gets the field value by using the PDMFieldInfo handle from
the PDMDefinition as a String[] |
PDMTimestamp |
getFieldValueAsTimestamp(PDMFieldInfo fieldInfo)
Gets the field value by using the PDMFieldInfo handle from
the PDMDefinition as a PDMTimestamp |
PDMTimestamp[] |
getFieldValueAsTimestampArray(PDMFieldInfo fieldInfo)
Gets the field value by using the PDMFieldInfo handle from
the PDMDefinition as a PDMTimestamp[] |
int |
getFieldValueAsUInt16(PDMFieldInfo fieldInfo)
Gets the field value by using the PDMFieldInfo handle from
the PDMDefinition as an int (UInt16) |
int[] |
getFieldValueAsUInt16Array(PDMFieldInfo fieldInfo)
Gets the field value by using the PDMFieldInfo handle from
the PDMDefinition as a int[] |
long |
getFieldValueAsUInt32(PDMFieldInfo fieldInfo)
Gets the field value by using the PDMFieldInfo handle from
the PDMDefinition as a long (UInt32) |
long[] |
getFieldValueAsUInt32Array(PDMFieldInfo fieldInfo)
Gets the field value by using the PDMFieldInfo handle from
the PDMDefinition as a long[] |
java.math.BigInteger |
getFieldValueAsUInt64(PDMFieldInfo fieldInfo)
Gets the field value by using the PDMFieldInfo handle from
the PDMDefinition as a BigInteger |
java.math.BigInteger[] |
getFieldValueAsUInt64Array(PDMFieldInfo fieldInfo)
Gets the field value by using the PDMFieldInfo handle from
the PDMDefinition as a BigInteger[] |
short |
getFieldValueAsUInt8(PDMFieldInfo fieldInfo)
Gets the field value by using the PDMFieldInfo handle from
the PDMDefinition as a short (UInt8) |
short[] |
getFieldValueAsUInt8Array(PDMFieldInfo fieldInfo)
Gets the field value by using the PDMFieldInfo handle from
the PDMDefinition as a short[] |
int |
getMessageLen()
Gets the message length in bytes which is known after it has been serialized |
PDMSerializer |
getSerializer()
|
int |
getVersionPolicy()
|
boolean |
isFieldValueSet(PDMFieldInfo fieldInfo)
Checks to see if the field's value is set |
boolean |
isIncludeDefinition()
Returns whether the PDMDefinition will be included
when serializing to bytes (defaults to false) |
boolean |
isMsgDirty()
|
boolean |
isTryToLoadDefFromCache()
Returns whether or not an attempt will be made when parsing a message to try to automatically loaded a PDMDefinition from the PDMDefinitionCache if the one currently set
doesn't exactly match the one in the incoming message; the current one will be replaced
(defaults to false) |
boolean |
isUseMsgDefIfNeeded()
Returns whether an included PDMDefinition should be
parsed and used instead of the previously set PDMDefinition
in cases where the two ids, major versions, and minor versions
do not match exactly (defaults to false) |
void |
loadDefinition(PDMDefinition definition)
Loads the PDMDefinition passed and initializes the
PDMMessage |
int |
parse(byte[] ba)
Deserializes a message from a byte array |
int |
parse(byte[] ba,
int pos)
Deserializes a message from a byte array at position |
int |
parse(PDMDeserializer deser,
byte[] ba,
int pos)
Deserializes a message from a byte array at position |
PDMMessage |
removeFieldValue(PDMFieldInfo fieldInfo)
Removes the field value (corresponding to the passed field info) from the message |
void |
setDeserializer(PDMDeserializer deser)
|
PDMMessage |
setFieldValue(PDMFieldInfo fieldInfo,
java.math.BigInteger value)
Sets the field value in the message using the PDMFieldInfo handle
and should be of type PDMFieldType.UINT64. |
PDMMessage |
setFieldValue(PDMFieldInfo fieldInfo,
java.math.BigInteger[] value)
Sets the field value in the message using the PDMFieldInfo handle
and should be of type PDMFieldType.UINT64_ARR. |
PDMMessage |
setFieldValue(PDMFieldInfo fieldInfo,
boolean value)
Sets the field value in the message using the PDMFieldInfo handle
and should be of type PDMFieldType.Boolean. |
PDMMessage |
setFieldValue(PDMFieldInfo fieldInfo,
boolean[] value)
Sets the field value in the message using the PDMFieldInfo handle
and should be of type PDMFieldType.BOOLEAN_ARR. |
PDMMessage |
setFieldValue(PDMFieldInfo fieldInfo,
byte value)
Sets the field value in the message using the PDMFieldInfo handle
and should be of type PDMFieldType.INT8. |
PDMMessage |
setFieldValue(PDMFieldInfo fieldInfo,
byte[] value)
Sets the field value in the message using the PDMFieldInfo handle
and should be of type PDMFieldType.INT8_ARR or PDMFieldType.BLOB. |
PDMMessage |
setFieldValue(PDMFieldInfo fieldInfo,
byte[][] value)
Sets the field value in the message using the PDMFieldInfo handle
and should be of type PDMFieldType.BLOB_ARR. |
PDMMessage |
setFieldValue(PDMFieldInfo fieldInfo,
double value)
Sets the field value in the message using the PDMFieldInfo handle
and should be of type PDMFieldType.DOUBLE. |
PDMMessage |
setFieldValue(PDMFieldInfo fieldInfo,
double[] value)
Sets the field value in the message using the PDMFieldInfo handle
and should be of type PDMFieldType.DOUBLE_ARR. |
PDMMessage |
setFieldValue(PDMFieldInfo fieldInfo,
float value)
Sets the field value in the message using the PDMFieldInfo handle
and should be of type PDMFieldType.FLOAT. |
PDMMessage |
setFieldValue(PDMFieldInfo fieldInfo,
float[] value)
Sets the field value in the message using the PDMFieldInfo handle
and should be of type PDMFieldType.FLOAT_ARR. |
PDMMessage |
setFieldValue(PDMFieldInfo fieldInfo,
int value)
Sets the field value in the message using the PDMFieldInfo handle
and should be of type PDMFieldType.UINT16 or PDMFieldType.INT32. |
PDMMessage |
setFieldValue(PDMFieldInfo fieldInfo,
int[] value)
Sets the field value in the message using the PDMFieldInfo handle
and should be of type PDMFieldType.UINT16_ARR or PDMFieldType.INT32_ARR. |
PDMMessage |
setFieldValue(PDMFieldInfo fieldInfo,
long value)
Sets the field value in the message using the PDMFieldInfo handle
and should be of type PDMFieldType.UINT32 or PDMFieldType.INT64. |
PDMMessage |
setFieldValue(PDMFieldInfo fieldInfo,
long[] value)
Sets the field value in the message using the PDMFieldInfo handle
and should be of type PDMFieldType.UINT32_ARR or PDMFieldType.INT64_ARR. |
PDMMessage |
setFieldValue(PDMFieldInfo fieldInfo,
PDMDecimal value)
Sets the field value in the message using the PDMFieldInfo handle
and should be of type PDMFieldType.DECIMAL. |
PDMMessage |
setFieldValue(PDMFieldInfo fieldInfo,
PDMDecimal[] value)
Sets the field value in the message using the PDMFieldInfo handle
and should be of type PDMFieldType.DECIMAL_ARR. |
PDMMessage |
setFieldValue(PDMFieldInfo fieldInfo,
PDMMessage value)
Sets the field value in the message using the PDMFieldInfo handle
and should be of type PDMFieldType.MESSAGE. |
PDMMessage |
setFieldValue(PDMFieldInfo fieldInfo,
PDMMessage[] value)
Sets the field value in the message using the PDMFieldInfo handle
and should be of type PDMFieldType.MESSAGE_ARR. |
PDMMessage |
setFieldValue(PDMFieldInfo fieldInfo,
PDMTimestamp value)
Sets the field value in the message using the PDMFieldInfo handle
and should be of type PDMFieldType.Timestamp. |
PDMMessage |
setFieldValue(PDMFieldInfo fieldInfo,
PDMTimestamp[] value)
Sets the field value in the message using the PDMFieldInfo handle
and should be of type PDMFieldType.TIMESTAMP_ARR. |
PDMMessage |
setFieldValue(PDMFieldInfo fieldInfo,
short value)
Sets the field value in the message using the PDMFieldInfo handle
and should be of type PDMFieldType.UINT8 or PDMFieldType.INT16. |
PDMMessage |
setFieldValue(PDMFieldInfo fieldInfo,
short[] value)
Sets the field value in the message using the PDMFieldInfo handle
and should be of type PDMFieldType.UINT8_ARR or PDMFieldType.INT16_ARR. |
PDMMessage |
setFieldValue(PDMFieldInfo fieldInfo,
java.lang.String value)
Sets the field value in the message using the PDMFieldInfo handle
and should be of type PDMFieldType.FIX_STRING or PDMFieldType.STRING
or PDMFieldType.FIX_UNICODE or PDMFieldType.UNICODE. |
PDMMessage |
setFieldValue(PDMFieldInfo fieldInfo,
java.lang.String[] value)
Sets the field value in the message using the PDMFieldInfo handle
and should be of type PDMFieldType.FIX_STRING_ARR or PDMFieldType.STRING_ARR or
PDMFieldType.FIX_UNICODE_ARR or PDMFieldType.UNICODE_ARR. |
void |
setIncludeDefinition(boolean includeDefinition)
Sets whether the PDMDefinition will be included
when serializing to bytes (defaults to false) |
void |
setMsgDirty(boolean msgDirty)
|
void |
setSerializer(PDMSerializer ser)
|
void |
setTryToLoadDefFromCache(boolean tryToLoadDefFromCache)
Sets whether or not an attempt will be made when parsing a message to try to automatically loaded a PDMDefinition from the PDMDefinitionCache if the one currently set
doesn't exactly match the one in the incoming message; the current one will be replaced
(defaults to false) |
void |
setUseMsgDefIfNeeded(boolean useMsgDefIfNeeded)
Sets whether an included PDMDefinition should be
parsed and used instead of the previously set PDMDefinition
in cases where the two ids, major versions, and minor versions
do not match exactly (defaults to false) |
void |
setVersionPolicy(int versionPolicy)
|
byte[] |
toBytes()
Serializes the message to a new byte array |
byte[] |
toBytes(PDMSerializer ser)
Serializes the message to a new byte array |
int |
toBytes(PDMSerializer ser,
byte[] ba,
int pos)
Serializes the message to an existing byte array at position |
void |
updateOptOrVarFlag(PDMField field)
Used internally to update the flag if needed to indicate that the message contains at least one optional or variable field |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int VERSION_POLICY_EXACT
public static final int VERSION_POLICY_BEST
| Constructor Detail |
|---|
public PDMMessage()
PDMDefinition
is not available.
public PDMMessage(PDMDefinition definition)
PDMDefinition
definition - The finalized PDMDefinition
public PDMMessage(int definitionId,
int versionMajor,
int versionMinor)
PDMDefinitionCache by the id passed
definitionId - The definition id to lookup in the cacheversionMajor - versionMinor - | Method Detail |
|---|
public PDMDefinition getDefinition()
public PDMSerializer getSerializer()
public void setSerializer(PDMSerializer ser)
public PDMDeserializer getDeserializer()
public void setDeserializer(PDMDeserializer deser)
public int getVersionPolicy()
public void setVersionPolicy(int versionPolicy)
public boolean isIncludeDefinition()
PDMDefinition will be included
when serializing to bytes (defaults to false)
public void setIncludeDefinition(boolean includeDefinition)
PDMDefinition will be included
when serializing to bytes (defaults to false)
includeDefinition - public boolean isUseMsgDefIfNeeded()
PDMDefinition should be
parsed and used instead of the previously set PDMDefinition
in cases where the two ids, major versions, and minor versions
do not match exactly (defaults to false)
PDMDefinition can be parsed and usedpublic void setUseMsgDefIfNeeded(boolean useMsgDefIfNeeded)
PDMDefinition should be
parsed and used instead of the previously set PDMDefinition
in cases where the two ids, major versions, and minor versions
do not match exactly (defaults to false)
useMsgDefIfNeeded - public boolean isTryToLoadDefFromCache()
PDMDefinition from the PDMDefinitionCache if the one currently set
doesn't exactly match the one in the incoming message; the current one will be replaced
(defaults to false)
PDMDefinitionpublic void setTryToLoadDefFromCache(boolean tryToLoadDefFromCache)
PDMDefinition from the PDMDefinitionCache if the one currently set
doesn't exactly match the one in the incoming message; the current one will be replaced
(defaults to false)
tryToLoadDefFromCache - public int getMessageLen()
protected java.util.Collection<PDMField> getFields()
protected int getDataSegmentLen()
public void updateOptOrVarFlag(PDMField field)
field - the field to checkpublic boolean isFieldValueSet(PDMFieldInfo fieldInfo)
fieldInfo - the corresponding field info handle
public PDMFieldIterator createFieldIterator()
PDMFieldIterator to traverse
through the PDMFields
public void loadDefinition(PDMDefinition definition)
PDMDefinition passed and initializes the
PDMMessage
definition - the PDMDefinition to loadpublic PDMMessage removeFieldValue(PDMFieldInfo fieldInfo)
fieldInfo - the PDMFieldInfo of the field to remove
public PDMMessage setFieldValue(PDMFieldInfo fieldInfo,
boolean value)
PDMFieldInfo handle
and should be of type PDMFieldType.Boolean.
fieldInfo - the PDMFieldInfo handlevalue - the boolean value
PDMMessage for chaining setFieldValue calls
public PDMMessage setFieldValue(PDMFieldInfo fieldInfo,
byte value)
PDMFieldInfo handle
and should be of type PDMFieldType.INT8.
fieldInfo - the PDMFieldInfo handlevalue - the byte value
PDMMessage for chaining setFieldValue calls
public PDMMessage setFieldValue(PDMFieldInfo fieldInfo,
short value)
PDMFieldInfo handle
and should be of type PDMFieldType.UINT8 or PDMFieldType.INT16.
fieldInfo - the PDMFieldInfo handlevalue - the ubyte (as a short) or short value
PDMMessage for chaining setFieldValue calls
public PDMMessage setFieldValue(PDMFieldInfo fieldInfo,
int value)
PDMFieldInfo handle
and should be of type PDMFieldType.UINT16 or PDMFieldType.INT32.
fieldInfo - the PDMFieldInfo handlevalue - the ushort (as an int) or int value
PDMMessage for chaining setFieldValue calls
public PDMMessage setFieldValue(PDMFieldInfo fieldInfo,
long value)
PDMFieldInfo handle
and should be of type PDMFieldType.UINT32 or PDMFieldType.INT64.
fieldInfo - the PDMFieldInfo handlevalue - the uint (as a long) or long value
PDMMessage for chaining setFieldValue calls
public PDMMessage setFieldValue(PDMFieldInfo fieldInfo,
java.math.BigInteger value)
PDMFieldInfo handle
and should be of type PDMFieldType.UINT64.
fieldInfo - the PDMFieldInfo handlevalue - the ulong (as a BigInteger) value
PDMMessage for chaining setFieldValue calls
public PDMMessage setFieldValue(PDMFieldInfo fieldInfo,
float value)
PDMFieldInfo handle
and should be of type PDMFieldType.FLOAT.
fieldInfo - the PDMFieldInfo handlevalue - the float value
PDMMessage for chaining setFieldValue calls
public PDMMessage setFieldValue(PDMFieldInfo fieldInfo,
double value)
PDMFieldInfo handle
and should be of type PDMFieldType.DOUBLE.
fieldInfo - the PDMFieldInfo handlevalue - the double value
PDMMessage for chaining setFieldValue calls
public PDMMessage setFieldValue(PDMFieldInfo fieldInfo,
PDMDecimal value)
PDMFieldInfo handle
and should be of type PDMFieldType.DECIMAL.
fieldInfo - the PDMFieldInfo handlevalue - the PDMDecimal value
PDMMessage for chaining setFieldValue calls
public PDMMessage setFieldValue(PDMFieldInfo fieldInfo,
PDMTimestamp value)
PDMFieldInfo handle
and should be of type PDMFieldType.Timestamp.
fieldInfo - the PDMFieldInfo handlevalue - the PDMTimestamp value
PDMMessage for chaining setFieldValue calls
public PDMMessage setFieldValue(PDMFieldInfo fieldInfo,
java.lang.String value)
PDMFieldInfo handle
and should be of type PDMFieldType.FIX_STRING or PDMFieldType.STRING
or PDMFieldType.FIX_UNICODE or PDMFieldType.UNICODE.
fieldInfo - the PDMFieldInfo handlevalue - the String value
PDMMessage for chaining setFieldValue calls
public PDMMessage setFieldValue(PDMFieldInfo fieldInfo,
PDMMessage value)
PDMFieldInfo handle
and should be of type PDMFieldType.MESSAGE.
fieldInfo - the PDMFieldInfo handlevalue - the PDMMessage value
PDMMessage for chaining setFieldValue calls
public PDMMessage setFieldValue(PDMFieldInfo fieldInfo,
boolean[] value)
PDMFieldInfo handle
and should be of type PDMFieldType.BOOLEAN_ARR.
fieldInfo - the PDMFieldInfo handlevalue - the boolean array value
PDMMessage for chaining setFieldValue calls
public PDMMessage setFieldValue(PDMFieldInfo fieldInfo,
byte[] value)
PDMFieldInfo handle
and should be of type PDMFieldType.INT8_ARR or PDMFieldType.BLOB.
fieldInfo - the PDMFieldInfo handlevalue - the byte array value
PDMMessage for chaining setFieldValue calls
public PDMMessage setFieldValue(PDMFieldInfo fieldInfo,
short[] value)
PDMFieldInfo handle
and should be of type PDMFieldType.UINT8_ARR or PDMFieldType.INT16_ARR.
fieldInfo - the PDMFieldInfo handlevalue - the ubtye (as a short) or short array value
PDMMessage for chaining setFieldValue calls
public PDMMessage setFieldValue(PDMFieldInfo fieldInfo,
int[] value)
PDMFieldInfo handle
and should be of type PDMFieldType.UINT16_ARR or PDMFieldType.INT32_ARR.
fieldInfo - the PDMFieldInfo handlevalue - the ushort (as an int) or int array value
PDMMessage for chaining setFieldValue calls
public PDMMessage setFieldValue(PDMFieldInfo fieldInfo,
long[] value)
PDMFieldInfo handle
and should be of type PDMFieldType.UINT32_ARR or PDMFieldType.INT64_ARR.
fieldInfo - the PDMFieldInfo handlevalue - the uint (as a long) or long array value
PDMMessage for chaining setFieldValue calls
public PDMMessage setFieldValue(PDMFieldInfo fieldInfo,
java.math.BigInteger[] value)
PDMFieldInfo handle
and should be of type PDMFieldType.UINT64_ARR.
fieldInfo - the PDMFieldInfo handlevalue - the ulong (as a BigInteger) array value
PDMMessage for chaining setFieldValue calls
public PDMMessage setFieldValue(PDMFieldInfo fieldInfo,
float[] value)
PDMFieldInfo handle
and should be of type PDMFieldType.FLOAT_ARR.
fieldInfo - the PDMFieldInfo handlevalue - the float array value
PDMMessage for chaining setFieldValue calls
public PDMMessage setFieldValue(PDMFieldInfo fieldInfo,
double[] value)
PDMFieldInfo handle
and should be of type PDMFieldType.DOUBLE_ARR.
fieldInfo - the PDMFieldInfo handlevalue - the double array value
PDMMessage for chaining setFieldValue calls
public PDMMessage setFieldValue(PDMFieldInfo fieldInfo,
PDMDecimal[] value)
PDMFieldInfo handle
and should be of type PDMFieldType.DECIMAL_ARR.
fieldInfo - the PDMFieldInfo handlevalue - the PDMDecimal array value
PDMMessage for chaining setFieldValue calls
public PDMMessage setFieldValue(PDMFieldInfo fieldInfo,
PDMTimestamp[] value)
PDMFieldInfo handle
and should be of type PDMFieldType.TIMESTAMP_ARR.
fieldInfo - the PDMFieldInfo handlevalue - the PDMTimestamp array value
PDMMessage for chaining setFieldValue calls
public PDMMessage setFieldValue(PDMFieldInfo fieldInfo,
java.lang.String[] value)
PDMFieldInfo handle
and should be of type PDMFieldType.FIX_STRING_ARR or PDMFieldType.STRING_ARR or
PDMFieldType.FIX_UNICODE_ARR or PDMFieldType.UNICODE_ARR.
fieldInfo - the PDMFieldInfo handlevalue - the PDMMessage array value
PDMMessage for chaining setFieldValue calls
public PDMMessage setFieldValue(PDMFieldInfo fieldInfo,
byte[][] value)
PDMFieldInfo handle
and should be of type PDMFieldType.BLOB_ARR.
fieldInfo - the PDMFieldInfo handlevalue - the byte[] array value
PDMMessage for chaining setFieldValue calls
public PDMMessage setFieldValue(PDMFieldInfo fieldInfo,
PDMMessage[] value)
PDMFieldInfo handle
and should be of type PDMFieldType.MESSAGE_ARR.
fieldInfo - the PDMFieldInfo handlevalue - the PDMMessage array value
PDMMessage for chaining setFieldValue callspublic java.lang.Object getFieldValue(PDMFieldInfo fieldInfo)
PDMFieldInfo handle from
the PDMDefinition
fieldInfo - the PDMFieldInfo handle
public boolean getFieldValueAsBoolean(PDMFieldInfo fieldInfo)
PDMFieldInfo handle from
the PDMDefinition as a boolean
fieldInfo - the PDMFieldInfo handle
public byte getFieldValueAsInt8(PDMFieldInfo fieldInfo)
PDMFieldInfo handle from
the PDMDefinition as a byte
fieldInfo - the PDMFieldInfo handle
public short getFieldValueAsUInt8(PDMFieldInfo fieldInfo)
PDMFieldInfo handle from
the PDMDefinition as a short (UInt8)
fieldInfo - the PDMFieldInfo handle
public short getFieldValueAsInt16(PDMFieldInfo fieldInfo)
PDMFieldInfo handle from
the PDMDefinition as a short
fieldInfo - the PDMFieldInfo handle
public int getFieldValueAsUInt16(PDMFieldInfo fieldInfo)
PDMFieldInfo handle from
the PDMDefinition as an int (UInt16)
fieldInfo - the PDMFieldInfo handle
public int getFieldValueAsInt32(PDMFieldInfo fieldInfo)
PDMFieldInfo handle from
the PDMDefinition as an int
fieldInfo - the PDMFieldInfo handle
public long getFieldValueAsUInt32(PDMFieldInfo fieldInfo)
PDMFieldInfo handle from
the PDMDefinition as a long (UInt32)
fieldInfo - the PDMFieldInfo handle
public long getFieldValueAsInt64(PDMFieldInfo fieldInfo)
PDMFieldInfo handle from
the PDMDefinition as a long
fieldInfo - the PDMFieldInfo handle
public java.math.BigInteger getFieldValueAsUInt64(PDMFieldInfo fieldInfo)
PDMFieldInfo handle from
the PDMDefinition as a BigInteger
fieldInfo - the PDMFieldInfo handle
public float getFieldValueAsFloat(PDMFieldInfo fieldInfo)
PDMFieldInfo handle from
the PDMDefinition as a float
fieldInfo - the PDMFieldInfo handle
public double getFieldValueAsDouble(PDMFieldInfo fieldInfo)
PDMFieldInfo handle from
the PDMDefinition as a double
fieldInfo - the PDMFieldInfo handle
public PDMDecimal getFieldValueAsDecimal(PDMFieldInfo fieldInfo)
PDMFieldInfo handle from
the PDMDefinition as a PDMDecimal
fieldInfo - the PDMFieldInfo handle
public PDMTimestamp getFieldValueAsTimestamp(PDMFieldInfo fieldInfo)
PDMFieldInfo handle from
the PDMDefinition as a PDMTimestamp
fieldInfo - the PDMFieldInfo handle
public java.lang.String getFieldValueAsString(PDMFieldInfo fieldInfo)
PDMFieldInfo handle from
the PDMDefinition as a String
fieldInfo - the PDMFieldInfo handle
public byte[] getFieldValueAsBlob(PDMFieldInfo fieldInfo)
PDMFieldInfo handle from
the PDMDefinition as a byte[]
fieldInfo - the PDMFieldInfo handle
public PDMMessage getFieldValueAsMessage(PDMFieldInfo fieldInfo)
PDMFieldInfo handle from
the PDMDefinition as a PDMMessage
fieldInfo - the PDMFieldInfo handle
public boolean[] getFieldValueAsBooleanArray(PDMFieldInfo fieldInfo)
PDMFieldInfo handle from
the PDMDefinition as a boolean[]
fieldInfo - the PDMFieldInfo handle
public byte[] getFieldValueAsInt8Array(PDMFieldInfo fieldInfo)
PDMFieldInfo handle from
the PDMDefinition as a byte[]
fieldInfo - the PDMFieldInfo handle
public short[] getFieldValueAsUInt8Array(PDMFieldInfo fieldInfo)
PDMFieldInfo handle from
the PDMDefinition as a short[]
fieldInfo - the PDMFieldInfo handle
public short[] getFieldValueAsInt16Array(PDMFieldInfo fieldInfo)
PDMFieldInfo handle from
the PDMDefinition as a short[]
fieldInfo - the PDMFieldInfo handle
public int[] getFieldValueAsUInt16Array(PDMFieldInfo fieldInfo)
PDMFieldInfo handle from
the PDMDefinition as a int[]
fieldInfo - the PDMFieldInfo handle
public int[] getFieldValueAsInt32Array(PDMFieldInfo fieldInfo)
PDMFieldInfo handle from
the PDMDefinition as a int[]
fieldInfo - the PDMFieldInfo handle
public long[] getFieldValueAsUInt32Array(PDMFieldInfo fieldInfo)
PDMFieldInfo handle from
the PDMDefinition as a long[]
fieldInfo - the PDMFieldInfo handle
public long[] getFieldValueAsInt64Array(PDMFieldInfo fieldInfo)
PDMFieldInfo handle from
the PDMDefinition as a long[]
fieldInfo - the PDMFieldInfo handle
public java.math.BigInteger[] getFieldValueAsUInt64Array(PDMFieldInfo fieldInfo)
PDMFieldInfo handle from
the PDMDefinition as a BigInteger[]
fieldInfo - the PDMFieldInfo handle
public float[] getFieldValueAsFloatArray(PDMFieldInfo fieldInfo)
PDMFieldInfo handle from
the PDMDefinition as a float[]
fieldInfo - the PDMFieldInfo handle
public double[] getFieldValueAsDoubleArray(PDMFieldInfo fieldInfo)
PDMFieldInfo handle from
the PDMDefinition as a double[]
fieldInfo - the PDMFieldInfo handle
public PDMDecimal[] getFieldValueAsDecimalArray(PDMFieldInfo fieldInfo)
PDMFieldInfo handle from
the PDMDefinition as a PDMDecimal[]
fieldInfo - the PDMFieldInfo handle
public PDMTimestamp[] getFieldValueAsTimestampArray(PDMFieldInfo fieldInfo)
PDMFieldInfo handle from
the PDMDefinition as a PDMTimestamp[]
fieldInfo - the PDMFieldInfo handle
public java.lang.String[] getFieldValueAsStringArray(PDMFieldInfo fieldInfo)
PDMFieldInfo handle from
the PDMDefinition as a String[]
fieldInfo - the PDMFieldInfo handle
public byte[][] getFieldValueAsBlobArray(PDMFieldInfo fieldInfo)
PDMFieldInfo handle from
the PDMDefinition as a an array of blobs
fieldInfo - the PDMFieldInfo handle
public PDMMessage[] getFieldValueAsMessageArray(PDMFieldInfo fieldInfo)
PDMFieldInfo handle from
the PDMDefinition as a PDMMessage[]
fieldInfo - the PDMFieldInfo handle
public byte[] toBytes()
public byte[] toBytes(PDMSerializer ser)
ser - the PDMSerializer to use
public int toBytes(PDMSerializer ser,
byte[] ba,
int pos)
ser - the PDMSerializer to useba - the byte arraypos - the starting position
public int parse(byte[] ba)
ba - the byte array
public int parse(byte[] ba,
int pos)
ba - the byte arraypos - the starting position
public int parse(PDMDeserializer deser,
byte[] ba,
int pos)
deser - the PDMDeserializer to useba - the byte arraypos - the starting position
public boolean isMsgDirty()
public void setMsgDirty(boolean msgDirty)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||