Package com.btobits.fixengine
Class FIXField
java.lang.Object
com.btobits.fixengine.FIXField
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
static final int
static final int
static final int
static final int
-
Constructor Summary
ConstructorsModifierConstructorDescriptionFIXField
(byte[] block, FIXVersion fixVersion) protected
FIXField
(int tagNum, byte[] val) protected
FIXField
(int tagNum, byte[] buf, int off, int len) protected
FIXField
(int tagNum, byte[] buf, int off, int len, boolean isValidate) FIXField
(int tagNum, byte[] valueAr, FIXVersion fixVersion) FIXField
(int tagNum, byte[] valueAr, FIXVersion fixVersion, boolean validate) protected
FIXField
(int tagNum, double val) protected
FIXField
(int tagNum, double val, boolean validate) FIXField
(int tagNum, double value, FIXVersion fixVersion) FIXField
(int tagNum, double value, FIXVersion fixVersion, boolean validate) protected
FIXField
(int tagNum, long val) protected
FIXField
(int tagNum, long val, boolean validate) FIXField
(int tagNum, long value, FIXVersion fixVersion) FIXField
(int tagNum, long value, FIXVersion fixVersion, boolean validate) protected
FIXField
(int tagNum, Double value, FIXVersion fixVersion) protected
FIXField
(int tagNum, Float value, FIXVersion fixVersion) protected
FIXField
(int tagNum, Integer value, FIXVersion fixVersion) protected
FIXField
(int tagNum, Long value, FIXVersion fixVersion) protected
protected
FIXField
(int tagNum, String value, FIXVersion fixVersion) FIXField
(int tagNum, String value, FIXVersion fixVersion, boolean validate) protected
FIXField
(int tagNum, Calendar value, FIXVersion fixVersion) FIXField
(String block, FIXVersion fixVersion) -
Method Summary
Modifier and TypeMethodDescriptionboolean
static int
FIXType2JAVAType
(int dataType) int
double
long
byte[]
int
getTag()
byte[]
protected int
getValueAsBlock
(byte[] buf, int off) protected int
int
hashCode()
protected boolean
isValueAsBlockEquals
(byte[] buf, int off, int len) void
setDateTimeValue
(Calendar val) void
setDoubleValue
(double val) void
setDoubleValue
(double val, boolean validate) void
setLongValue
(long val) void
setLongValue
(long val, boolean validate) void
setRawValue
(byte[] val) void
setStringValue
(String val) void
setStringValue
(String val, boolean validate) void
setValueFromBlock
(byte[] val) void
setValueFromBlock
(byte[] buf, int off, int len) protected void
setValueFromBlock
(byte[] buf, int off, int len, boolean isValidate) void
setValueFromString
(String strVal) byte[]
toString()
protected void
validate
(byte[] buf, int off, int len)
-
Field Details
-
JAVASTRING
public static final int JAVASTRING- See Also:
-
JAVALONG
public static final int JAVALONG- See Also:
-
JAVADOUBLE
public static final int JAVADOUBLE- See Also:
-
JAVACALENDAR
public static final int JAVACALENDAR- See Also:
-
JAVARAW
public static final int JAVARAW- See Also:
-
-
Constructor Details
-
FIXField
-
FIXField
-
FIXField
public FIXField(int tagNum, long value, FIXVersion fixVersion, boolean validate) throws FIXMessageException - Throws:
FIXMessageException
-
FIXField
public FIXField(int tagNum, double value, FIXVersion fixVersion, boolean validate) throws FIXMessageException - Throws:
FIXMessageException
-
FIXField
- Throws:
FIXMessageException
-
FIXField
- Throws:
FIXMessageException
-
FIXField
- Throws:
FIXMessageException
-
FIXField
- Throws:
FIXMessageException
-
FIXField
- Throws:
FIXMessageException
-
FIXField
- Throws:
FIXMessageException
-
FIXField
- Throws:
FIXMessageException
-
FIXField
- Throws:
FIXMessageException
-
FIXField
- Throws:
FIXMessageException
-
FIXField
- Throws:
FIXMessageException
-
FIXField
- Throws:
FIXMessageException
-
FIXField
- Throws:
FIXMessageException
-
FIXField
- Throws:
FIXMessageException
-
FIXField
protected FIXField(int tagNum, byte[] buf, int off, int len, boolean isValidate) throws FIXMessageException - Throws:
FIXMessageException
-
FIXField
- Throws:
FIXMessageException
-
FIXField
- Throws:
FIXMessageException
-
FIXField
- Throws:
FIXMessageException
-
FIXField
- Throws:
FIXMessageException
-
FIXField
- Throws:
FIXMessageException
-
FIXField
- Throws:
FIXMessageException
-
FIXField
- Throws:
FIXMessageException
-
FIXField
- Throws:
FIXMessageException
-
FIXField
- Throws:
FIXMessageException
-
FIXField
- Throws:
FIXMessageException
-
FIXField
- Throws:
FIXMessageException
-
FIXField
-
-
Method Details
-
setDateTimeValue
- Throws:
FIXMessageException
-
getDateTimeValue
- Throws:
FIXMessageException
-
setDoubleValue
- Throws:
FIXMessageException
-
setDoubleValue
- Throws:
FIXMessageException
-
getDoubleValue
- Throws:
FIXMessageException
-
getDoubleObjValue
- Throws:
FIXMessageException
-
setLongValue
- Throws:
FIXMessageException
-
setLongValue
- Throws:
FIXMessageException
-
getLongValue
- Throws:
FIXMessageException
-
getLongObjValue
- Throws:
FIXMessageException
-
setRawValue
- Throws:
FIXMessageException
-
getRawValue
- Throws:
FIXMessageException
-
setStringValue
- Throws:
FIXMessageException
-
setStringValue
- Throws:
FIXMessageException
-
getStringValue
- Throws:
FIXMessageException
-
getTag
public int getTag() -
getDataType
public int getDataType() -
getValueLength
protected int getValueLength() -
getValueAsString
-
getValueAsBlock
public byte[] getValueAsBlock() -
getValueAsBlock
protected int getValueAsBlock(byte[] buf, int off) -
setValueFromBlock
protected void setValueFromBlock(byte[] buf, int off, int len, boolean isValidate) throws FIXMessageException - Throws:
FIXMessageException
-
setValueFromString
- Throws:
FIXMessageException
-
setValueFromBlock
- Throws:
FIXMessageException
-
setValueFromBlock
- Throws:
FIXMessageException
-
isValueAsBlockEquals
protected boolean isValueAsBlockEquals(byte[] buf, int off, int len) -
validate
- Throws:
FIXMessageException
-
toFIXBlock
public byte[] toFIXBlock() -
toFIXString
-
toString
-
equals
-
hashCode
public int hashCode() -
FIXType2JAVAType
public static int FIXType2JAVAType(int dataType)
-