com.btobits.fixengine
Class FIXField
java.lang.Object
com.btobits.fixengine.FIXField
public class FIXField
- extends Object
Constructor Summary |
|
FIXField(byte[] block,
FIXVersion fixVersion)
|
|
FIXField(FIXField fixField)
|
protected |
FIXField(int tagNum,
byte[] val)
|
|
FIXField(int tagNum,
byte[] valueAr,
FIXVersion fixVersion)
|
|
FIXField(int tagNum,
byte[] valueAr,
FIXVersion fixVersion,
boolean validate)
|
protected |
FIXField(int tagNum,
byte[] buf,
int off,
int len)
|
protected |
FIXField(int tagNum,
byte[] buf,
int off,
int len,
boolean isValidate)
|
protected |
FIXField(int tagNum,
Calendar val)
|
|
FIXField(int tagNum,
Calendar value,
FIXVersion fixVersion)
|
protected |
FIXField(int tagNum,
double val)
|
protected |
FIXField(int tagNum,
Double value)
|
protected |
FIXField(int tagNum,
double val,
boolean validate)
|
|
FIXField(int tagNum,
double value,
FIXVersion fixVersion)
|
|
FIXField(int tagNum,
Double value,
FIXVersion fixVersion)
|
|
FIXField(int tagNum,
double value,
FIXVersion fixVersion,
boolean validate)
|
protected |
FIXField(int tagNum,
Float value)
|
|
FIXField(int tagNum,
Float value,
FIXVersion fixVersion)
|
protected |
FIXField(int tagNum,
Integer value)
|
|
FIXField(int tagNum,
Integer value,
FIXVersion fixVersion)
|
protected |
FIXField(int tagNum,
long val)
|
protected |
FIXField(int tagNum,
Long value)
|
protected |
FIXField(int tagNum,
long val,
boolean validate)
|
|
FIXField(int tagNum,
long value,
FIXVersion fixVersion)
|
|
FIXField(int tagNum,
Long value,
FIXVersion fixVersion)
|
|
FIXField(int tagNum,
long value,
FIXVersion fixVersion,
boolean validate)
|
protected |
FIXField(int tagNum,
String val)
|
protected |
FIXField(int tagNum,
String val,
boolean validate)
|
|
FIXField(int tagNum,
String value,
FIXVersion fixVersion)
|
|
FIXField(int tagNum,
String value,
FIXVersion fixVersion,
boolean validate)
|
|
FIXField(String block,
FIXVersion fixVersion)
|
Method Summary |
boolean |
equals(Object obj)
|
static int |
FIXType2JAVAType(int dataType)
|
int |
getDataType()
|
Calendar |
getDateTimeValue()
|
Double |
getDoubleObjValue()
|
double |
getDoubleValue()
|
Long |
getLongObjValue()
|
long |
getLongValue()
|
byte[] |
getRawValue()
|
String |
getStringValue()
|
int |
getTag()
|
byte[] |
getValueAsBlock()
|
protected int |
getValueAsBlock(byte[] buf,
int off)
|
String |
getValueAsString()
|
protected int |
getValueLength()
|
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[] |
toFIXBlock()
|
String |
toFIXString()
|
String |
toString()
|
protected void |
validate(byte[] buf,
int off,
int len)
|
JAVASTRING
public static final int JAVASTRING
- See Also:
- Constant Field Values
JAVALONG
public static final int JAVALONG
- See Also:
- Constant Field Values
JAVADOUBLE
public static final int JAVADOUBLE
- See Also:
- Constant Field Values
JAVACALENDAR
public static final int JAVACALENDAR
- See Also:
- Constant Field Values
JAVARAW
public static final int JAVARAW
- See Also:
- Constant Field Values
FIXField
public FIXField(FIXField fixField)
FIXField
public FIXField(int tagNum,
String value,
FIXVersion fixVersion,
boolean validate)
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
public FIXField(byte[] block,
FIXVersion fixVersion)
throws FIXMessageException
- Throws:
FIXMessageException
FIXField
public FIXField(int tagNum,
byte[] valueAr,
FIXVersion fixVersion)
throws FIXMessageException
- Throws:
FIXMessageException
FIXField
public FIXField(int tagNum,
long value,
FIXVersion fixVersion)
throws FIXMessageException
- Throws:
FIXMessageException
FIXField
public FIXField(int tagNum,
double value,
FIXVersion fixVersion)
throws FIXMessageException
- Throws:
FIXMessageException
FIXField
public FIXField(int tagNum,
String value,
FIXVersion fixVersion)
throws FIXMessageException
- Throws:
FIXMessageException
FIXField
public FIXField(int tagNum,
Calendar value,
FIXVersion fixVersion)
throws FIXMessageException
- Throws:
FIXMessageException
FIXField
public FIXField(int tagNum,
Double value,
FIXVersion fixVersion)
throws FIXMessageException
- Throws:
FIXMessageException
FIXField
public FIXField(int tagNum,
Float value,
FIXVersion fixVersion)
throws FIXMessageException
- Throws:
FIXMessageException
FIXField
public FIXField(int tagNum,
Integer value,
FIXVersion fixVersion)
throws FIXMessageException
- Throws:
FIXMessageException
FIXField
public FIXField(int tagNum,
Long value,
FIXVersion fixVersion)
throws FIXMessageException
- Throws:
FIXMessageException
FIXField
public FIXField(String block,
FIXVersion fixVersion)
throws FIXMessageException
- Throws:
FIXMessageException
FIXField
protected FIXField(int tagNum,
byte[] val)
throws FIXMessageException
- Throws:
FIXMessageException
FIXField
protected FIXField(int tagNum,
byte[] buf,
int off,
int len)
throws FIXMessageException
- Throws:
FIXMessageException
FIXField
protected FIXField(int tagNum,
byte[] buf,
int off,
int len,
boolean isValidate)
throws FIXMessageException
- Throws:
FIXMessageException
FIXField
protected FIXField(int tagNum,
long val)
throws FIXMessageException
- Throws:
FIXMessageException
FIXField
protected FIXField(int tagNum,
double val)
throws FIXMessageException
- Throws:
FIXMessageException
FIXField
protected FIXField(int tagNum,
long val,
boolean validate)
throws FIXMessageException
- Throws:
FIXMessageException
FIXField
protected FIXField(int tagNum,
double val,
boolean validate)
throws FIXMessageException
- Throws:
FIXMessageException
FIXField
protected FIXField(int tagNum,
String val)
throws FIXMessageException
- Throws:
FIXMessageException
FIXField
protected FIXField(int tagNum,
String val,
boolean validate)
throws FIXMessageException
- Throws:
FIXMessageException
FIXField
protected FIXField(int tagNum,
Calendar val)
throws FIXMessageException
- Throws:
FIXMessageException
FIXField
protected FIXField(int tagNum,
Double value)
throws FIXMessageException
- Throws:
FIXMessageException
FIXField
protected FIXField(int tagNum,
Float value)
throws FIXMessageException
- Throws:
FIXMessageException
FIXField
protected FIXField(int tagNum,
Integer value)
throws FIXMessageException
- Throws:
FIXMessageException
FIXField
protected FIXField(int tagNum,
Long value)
throws FIXMessageException
- Throws:
FIXMessageException
FIXField
public FIXField(int tagNum,
byte[] valueAr,
FIXVersion fixVersion,
boolean validate)
setDateTimeValue
public void setDateTimeValue(Calendar val)
throws FIXMessageException
- Throws:
FIXMessageException
getDateTimeValue
public Calendar getDateTimeValue()
throws FIXMessageException
- Throws:
FIXMessageException
setDoubleValue
public void setDoubleValue(double val)
throws FIXMessageException
- Throws:
FIXMessageException
setDoubleValue
public void setDoubleValue(double val,
boolean validate)
throws FIXMessageException
- Throws:
FIXMessageException
getDoubleValue
public double getDoubleValue()
throws FIXMessageException
- Throws:
FIXMessageException
getDoubleObjValue
public Double getDoubleObjValue()
throws FIXMessageException
- Throws:
FIXMessageException
setLongValue
public void setLongValue(long val)
throws FIXMessageException
- Throws:
FIXMessageException
setLongValue
public void setLongValue(long val,
boolean validate)
throws FIXMessageException
- Throws:
FIXMessageException
getLongValue
public long getLongValue()
throws FIXMessageException
- Throws:
FIXMessageException
getLongObjValue
public Long getLongObjValue()
throws FIXMessageException
- Throws:
FIXMessageException
setRawValue
public void setRawValue(byte[] val)
throws FIXMessageException
- Throws:
FIXMessageException
getRawValue
public byte[] getRawValue()
throws FIXMessageException
- Throws:
FIXMessageException
setStringValue
public void setStringValue(String val)
throws FIXMessageException
- Throws:
FIXMessageException
setStringValue
public void setStringValue(String val,
boolean validate)
throws FIXMessageException
- Throws:
FIXMessageException
getStringValue
public String getStringValue()
throws FIXMessageException
- Throws:
FIXMessageException
getTag
public int getTag()
getDataType
public int getDataType()
getValueLength
protected int getValueLength()
getValueAsString
public String 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
public void setValueFromString(String strVal)
throws FIXMessageException
- Throws:
FIXMessageException
setValueFromBlock
public void setValueFromBlock(byte[] val)
throws FIXMessageException
- Throws:
FIXMessageException
setValueFromBlock
public void setValueFromBlock(byte[] buf,
int off,
int len)
throws FIXMessageException
- Throws:
FIXMessageException
isValueAsBlockEquals
protected boolean isValueAsBlockEquals(byte[] buf,
int off,
int len)
validate
protected void validate(byte[] buf,
int off,
int len)
throws FIXMessageException
- Throws:
FIXMessageException
toFIXBlock
public byte[] toFIXBlock()
toFIXString
public String toFIXString()
toString
public String toString()
- Overrides:
toString
in class Object
equals
public boolean equals(Object obj)
- Overrides:
equals
in class Object
FIXType2JAVAType
public static int FIXType2JAVAType(int dataType)
Copyright © 2000-2014 EPAM Systems. All Rights Reserved.