com.latencybusters.pdm
Class PDMField

java.lang.Object
  extended by com.latencybusters.pdm.PDMField

public class PDMField
extends java.lang.Object

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

REQ_FIX_HEADER_LEN

protected static final int REQ_FIX_HEADER_LEN
See Also:
Constant Field Values

REQ_VAR_HEADER_LEN

protected static final int REQ_VAR_HEADER_LEN
See Also:
Constant Field Values

OPT_FIX_HEADER_LEN

protected static final int OPT_FIX_HEADER_LEN
See Also:
Constant Field Values

OPT_VAR_HEADER_LEN

protected static final int OPT_VAR_HEADER_LEN
See Also:
Constant Field Values

UNICODE_CHAR_LEN

protected static final int UNICODE_CHAR_LEN
See Also:
Constant Field Values
Constructor Detail

PDMField

public PDMField(PDMFieldInfo info,
                com.latencybusters.pdm.PDMSection section,
                int offset,
                PDMSerializer ser,
                PDMDeserializer deser)
Method Detail

getFieldInfo

public PDMFieldInfo getFieldInfo()

isValueSet

public boolean isValueSet()

getId

public int getId()

getIntName

public int getIntName()

getStrName

public java.lang.String getStrName()

getFieldType

public PDMFieldType getFieldType()

getOffset

protected int getOffset()

setOffset

protected void setOffset(int offset)

getSection

protected com.latencybusters.pdm.PDMSection getSection()

setSection

protected void setSection(com.latencybusters.pdm.PDMSection section)

getVariableLen

protected int getVariableLen()

setVariableLen

protected void setVariableLen(int variableLen)

setValueSet

protected void setValueSet(boolean valueSet)

isByteSwap

protected boolean isByteSwap()

setByteSwap

protected void setByteSwap(boolean byteSwap)

createBufferIfNeeded

protected void createBufferIfNeeded()

swapBytes

protected void swapBytes()

getLenIncludingHeader

protected int getLenIncludingHeader()
Gets the length in bytes of the field or -1 if it is variable length and cannot be determined yet

Returns:
the length in bytes of the field

getValue

public java.lang.Object getValue()
Gets the actual value that was set in the field.

Returns:
the Object representing the field value

getBooleanValue

public boolean getBooleanValue()
Gets the actual value that was set in the field as Boolean

Returns:
the boolean field value

getInt8Value

public byte getInt8Value()
Gets the actual value that was set in the field as Int8

Returns:
the Int8 field value

getUInt8Value

public short getUInt8Value()
Gets the actual value that was set in the field as UInt8

Returns:
the UInt8 field value

getInt16Value

public short getInt16Value()
Gets the actual value that was set in the field as Int16

Returns:
the Int16 field value

getUInt16Value

public int getUInt16Value()
Gets the actual value that was set in the field as UInt16

Returns:
the UInt16 field value

getInt32Value

public int getInt32Value()
Gets the actual value that was set in the field as Int32

Returns:
the Int32 field value

getUInt32Value

public long getUInt32Value()
Gets the actual value that was set in the field as UInt32

Returns:
the UInt32 field value

getInt64Value

public long getInt64Value()
Gets the actual value that was set in the field as Int64

Returns:
the Int64 field value

getUInt64Value

public java.math.BigInteger getUInt64Value()
Gets the actual value that was set in the field as UInt64

Returns:
the UInt64 field value

getFloatValue

public float getFloatValue()
Gets the actual value that was set in the field as Float

Returns:
the Float field value

getDoubleValue

public double getDoubleValue()
Gets the actual value that was set in the field as Double

Returns:
the Double field value

getDecimalValue

public PDMDecimal getDecimalValue()
Gets the actual value that was set in the field as PDMDecimal

Returns:
the PDMDecimal field value

getTimestampValue

public PDMTimestamp getTimestampValue()
Gets the actual value that was set in the field as PDMTimestamp

Returns:
the PDMTimestamp field value

getStringValue

public java.lang.String getStringValue()
Gets the actual value that was set in the field as String (for FIX_STRING, STRING, FIX_UNICODE, and UNICODE)

Returns:
the String field value

getBlobValue

public byte[] getBlobValue()
Gets the actual value that was set in the field as Blob

Returns:
the Blob field value

getMessageValue

public PDMMessage getMessageValue()
Gets the actual value that was set in the field as PDMMessage

Returns:
the PDMMessage field value

getBooleanArrayValue

public boolean[] getBooleanArrayValue()
Gets the actual value that was set in the field as Boolean[]

Returns:
the Boolean[] field value

getInt8ArrayValue

public byte[] getInt8ArrayValue()
Gets the actual value that was set in the field as Int8[]

Returns:
the Int8[] field value

getUInt8ArrayValue

public short[] getUInt8ArrayValue()
Gets the actual value that was set in the field as UInt8[]

Returns:
the UInt8[] field value

getInt16ArrayValue

public short[] getInt16ArrayValue()
Gets the actual value that was set in the field as Int16[]

Returns:
the Int16[] field value

getUInt16ArrayValue

public int[] getUInt16ArrayValue()
Gets the actual value that was set in the field as UInt16[]

Returns:
the UInt16[] field value

getInt32ArrayValue

public int[] getInt32ArrayValue()
Gets the actual value that was set in the field as Int32[]

Returns:
the Int32[] field value

getUInt32ArrayValue

public long[] getUInt32ArrayValue()
Gets the actual value that was set in the field as UInt32[]

Returns:
the UInt32[] field value

getInt64ArrayValue

public long[] getInt64ArrayValue()
Gets the actual value that was set in the field as Int64[]

Returns:
the Int64[] field value

getUInt64ArrayValue

public java.math.BigInteger[] getUInt64ArrayValue()
Gets the actual value that was set in the field as UInt64[]

Returns:
the UInt64[] field value

getFloatArrayValue

public float[] getFloatArrayValue()
Gets the actual value that was set in the field as Float[]

Returns:
the Float[] field value

getDoubleArrayValue

public double[] getDoubleArrayValue()
Gets the actual value that was set in the field as Double[]

Returns:
the Double[] field value

getDecimalArrayValue

public PDMDecimal[] getDecimalArrayValue()
Gets the actual value that was set in the field as PDMDecimal[]

Returns:
the PDMDecimal[] field value

getTimestampArrayValue

public PDMTimestamp[] getTimestampArrayValue()
Gets the actual value that was set in the field as PDMTimestamp[]

Returns:
the PDMTimestamp[] field value

getStringArrayValue

public java.lang.String[] getStringArrayValue()
Gets the actual value that was set in the field as String[]

Returns:
the String[] field value

getBlobArrayValue

public byte[][] getBlobArrayValue()
Gets the actual value that was set in the field as Blob[]

Returns:
the Blob[] field value

getMessageArrayValue

public PDMMessage[] getMessageArrayValue()
Gets the actual value that was set in the field as PDMMessage[]

Returns:
the PDMMessage[] field value

setValue

public void setValue(boolean value)
Sets the field value to the value passed

Parameters:
value -

setValue

public void setValue(byte value)
Sets the field value to the value passed

Parameters:
value -

setValue

public void setValue(short value)
Sets the field value to the value passed

Parameters:
value -

setValue

public void setValue(int value)
Sets the field value to the value passed

Parameters:
value -

setValue

public void setValue(long value)
Sets the field value to the value passed

Parameters:
value -

setValue

public void setValue(java.math.BigInteger value)
Sets the field value to the value passed

Parameters:
value -

setValue

public void setValue(float value)
Sets the field value to the value passed

Parameters:
value -

setValue

public void setValue(double value)
Sets the field value to the value passed

Parameters:
value -

setValue

public void setValue(PDMDecimal value)
Sets the field value to the value passed

Parameters:
value -

setValue

public void setValue(PDMTimestamp value)
Sets the field value to the value passed

Parameters:
value -

setValue

public void setValue(java.lang.String value)
Sets the field value to the value passed

Parameters:
value -

setValue

public void setValue(PDMMessage value)
Sets the field value to the value passed

Parameters:
value -

setValue

public void setValue(boolean[] values)
Sets the field value to the array value passed

Parameters:
values -

setValue

public void setValue(byte[] values)
Sets the field value to the array value passed

Parameters:
values -

setValue

public void setValue(short[] values)
Sets the field value to the array value passed

Parameters:
values -

setValue

public void setValue(int[] values)
Sets the field value to the array value passed

Parameters:
values -

setValue

public void setValue(long[] values)
Sets the field value to the array value passed

Parameters:
values -

setValue

public void setValue(java.math.BigInteger[] values)
Sets the field value to the array value passed

Parameters:
values -

setValue

public void setValue(float[] values)
Sets the field value to the array value passed

Parameters:
values -

setValue

public void setValue(double[] values)
Sets the field value to the array value passed

Parameters:
values -

setValue

public void setValue(PDMDecimal[] values)
Sets the field value to the array value passed

Parameters:
values -

setValue

public void setValue(PDMTimestamp[] values)
Sets the field value to the array value passed

Parameters:
values -

setValue

public void setValue(java.lang.String[] values)
Sets the field value to the array value passed

Parameters:
values -

setValue

public void setValue(byte[][] values)
Sets the field value to the array value passed

Parameters:
values -

setValue

public void setValue(PDMMessage[] values)
Sets the field value to the array value passed

Parameters:
values -


All of the documentation and software included in this and any other Informatica Inc "Ultra Messaging" Release is Copyright (C) 2004-2014, Informatica Corporation. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted only as covered by the terms of a valid software license agreement with 29West Inc. Copyright © 2004-2014, Informatica, Inc. All Rights Reserved.