quickfix
Class Field

java.lang.Object
  extended byquickfix.Field
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
BooleanField, CharField, DateField, DecimalField, DoubleField, IntField, StringField

public class Field
extends java.lang.Object
implements java.io.Serializable

Base class for FIX message fields. This class should be abstract but that would break compatibility with the QF JNI classes.

Author:
sbate
See Also:
Serialized Form

Constructor Summary
Field(int field, java.lang.Object object)
           
 
Method Summary
 boolean equals(java.lang.Object object)
           
 int getField()
          Gets the field's tag.
 java.lang.Object getObject()
          Get the field value
 int getTag()
          Gets the field's tag.
 int hashCode()
           
protected  void setObject(java.lang.Object object)
          Sets the field's value to the given object.
 void setTag(int tag)
           
 java.lang.String toString()
          Return's the formatted field (tag=value)
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Field

public Field(int field,
             java.lang.Object object)
Method Detail

getTag

public int getTag()
Gets the field's tag.

Returns:
the tag

getField

public int getField()
Gets the field's tag. (QF/C++ compatibility)

Returns:
the tag
See Also:
getTag()

setObject

protected void setObject(java.lang.Object object)
Sets the field's value to the given object.

Parameters:
object -

getObject

public java.lang.Object getObject()
Get the field value

Returns:
an object representing the field's value

toString

public java.lang.String toString()
Return's the formatted field (tag=value)

Returns:
the formatted field

equals

public boolean equals(java.lang.Object object)

hashCode

public int hashCode()

setTag

public void setTag(int tag)