|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbiz.onixs.fix.parser.Version
public class Version
Financial Information eXchange (FIX) protocol version.
Field Summary | |
---|---|
static Version |
FIX40
Version 4.0 |
static Version |
FIX41
Version 4.1 |
static Version |
FIX42
Version 4.2 |
static Version |
FIX43
Version 4.3 |
static Version |
FIX44
Version 4.4 |
static Version |
FIX50
Version 5.0 |
static Version |
FIX50_SP1
Version 5.0 SP1 |
static Version |
FIX50_SP2
Version 5.0 SP2 |
static Version |
UNKNOWN
Unknown FIX version. |
Method Summary | |
---|---|
int |
compareTo(Object obj)
Compares to another instance. |
static List<Version> |
getAllVersions()
Returns all base and dialect FIX versions. |
Version |
getBaseVersion()
Returns base FIX version if this is dialect or itself if not. |
String |
getBeginStringValue()
Returns the value of the BeginString (tag=8) field. Example: FIX.4.2 . |
static Version |
getByBeginString(String beginString)
Returns instance by FIX begin string. |
static Version |
getById(String id)
Returns instance by base or dialect FIX version id. |
static Version |
getByIdStrict(String id)
Returns instance by base or dialect FIX version id. |
static Version |
getByNumber(String number)
Returns instance by FIX version number. |
byte[] |
getBytes()
Returns FIX string as a byte array. |
static Version |
getDialectVersion(Version baseVersion,
String id)
Returns dialect FIX version with the specified base FIX version and dialect name. |
String |
getId()
Returns base or dialect FIX version id. Example: FIX.4.2 Example: Lava |
String |
getNumber()
Returns FIX version number. |
String |
toString()
Returns readable string representation. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final Version UNKNOWN
public static final Version FIX40
public static final Version FIX41
public static final Version FIX42
public static final Version FIX43
public static final Version FIX44
public static final Version FIX50
public static final Version FIX50_SP1
public static final Version FIX50_SP2
Method Detail |
---|
public String getBeginStringValue()
FIX.4.2
.
public String toString()
toString
in class Object
public byte[] getBytes()
getBeginStringValue()
.
public static List<Version> getAllVersions()
public Version getBaseVersion()
public static Version getByNumber(String number)
number
- FIX version number. Example: 4.2
public static Version getByBeginString(String beginString)
beginString
- FIX begin string
public String getId()
FIX.4.2
Lava
public String getNumber()
4.2
.
public static Version getByIdStrict(String id)
id
- FIX version name or dialect name. Example: FIX.4.2
. Example: Lava
.
RuntimeException
- if not foundpublic static Version getById(String id)
id
- FIX version name or dialect name. Example: FIX.4.2
. Example: Lava
.
UNKNOWN
if not foundpublic static Version getDialectVersion(Version baseVersion, String id)
getById(String)
if you just need to get a version
by name.
baseVersion
- base FIX versionid
- dialect id
public final int compareTo(Object obj)
compareTo
in interface Comparable
obj
- another instance.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |