com.wombat.mama
public class MamaFieldDescriptor extends java.lang.Object
MamaFieldDescriptor
class represents a field in a
MamaMsg
MamaDictionary
,
MamaMsg
Modifier and Type | Field and Description |
---|---|
static short |
BOOL |
static short |
CHAR |
static short |
COLLECTION |
static short |
DATETIME |
static short |
F32 |
static short |
F32ARRAY |
static short |
F64 |
static short |
F64ARRAY |
static short |
I16 |
static short |
I16ARRAY |
static short |
I32 |
static short |
I32ARRAY |
static short |
I64 |
static short |
I64ARRAY |
static short |
I8 |
static short |
I8ARRAY |
static short |
MSG |
static short |
OPAQUE |
static short |
PRICE |
static short |
QUANTITY |
static short |
STRING |
static short |
TIME |
static short |
U16 |
static short |
U16ARRAY |
static short |
U32 |
static short |
U32ARRAY |
static short |
U64 |
static short |
U64ARRAY |
static short |
U8 |
static short |
U8ARRAY |
static short |
UNKNOWN |
static short |
VECTOR |
static short |
VECTOR_MSG |
static short |
VECTOR_PRICE |
static short |
VECTOR_STRING |
static short |
VECTOR_TIME |
Constructor and Description |
---|
MamaFieldDescriptor(int fid,
short type,
java.lang.String name,
java.lang.Object data)
Create a
MamaFieldDescriptor |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
getClosure()
Return the user specified data associated with the field descriptor.
|
int |
getFid()
Return the field identifier.
|
java.lang.String |
getName()
Return the human readable name of the field.
|
boolean |
getTrackModState() |
short |
getType()
Return the data type.
|
static java.lang.String |
getTypeName(short type) |
void |
setClosure(java.lang.Object closure)
Set user specified data to associate with the field descriptor.
|
void |
setTrackModState(boolean on) |
java.lang.String |
toString()
Returns a string suitable for output to a terminal containing the type,
id, and name.
|
public static final short MSG
public static final short DATETIME
public static final short OPAQUE
public static final short STRING
public static final short BOOL
public static final short CHAR
public static final short I8
public static final short U8
public static final short I16
public static final short U16
public static final short I32
public static final short U32
public static final short I64
public static final short U64
public static final short F32
public static final short F64
public static final short TIME
public static final short PRICE
public static final short I8ARRAY
public static final short U8ARRAY
public static final short I16ARRAY
public static final short U16ARRAY
public static final short I32ARRAY
public static final short U32ARRAY
public static final short I64ARRAY
public static final short U64ARRAY
public static final short F32ARRAY
public static final short F64ARRAY
public static final short VECTOR_STRING
public static final short VECTOR_MSG
public static final short VECTOR_TIME
public static final short VECTOR_PRICE
public static final short QUANTITY
public static final short VECTOR
public static final short COLLECTION
public static final short UNKNOWN
public MamaFieldDescriptor(int fid, short type, java.lang.String name, java.lang.Object data)
MamaFieldDescriptor
fid
- The field identifier.type
- The type.name
- The field name.public int getFid()
public short getType()
public java.lang.String getName()
public java.lang.String toString()
toString
in class java.lang.Object
public void setClosure(java.lang.Object closure)
closure
- The data to associate with the descriptor.public java.lang.Object getClosure()
null
public static java.lang.String getTypeName(short type)
public void setTrackModState(boolean on)
public boolean getTrackModState()
Copyright 2011 NYSE Technologies