Package com.wombat.mama
Class MamaFieldDescriptor
- java.lang.Object
-
- com.wombat.mama.MamaFieldDescriptor
-
public class MamaFieldDescriptor extends java.lang.ObjectTheMamaFieldDescriptorclass represents a field in aMamaMsg- See Also:
MamaDictionary,MamaMsg
-
-
Field Summary
Fields Modifier and Type Field Description static shortBOOLstatic shortCHARstatic shortCOLLECTIONstatic shortDATETIMEstatic shortF32static shortF32ARRAYstatic shortF64static shortF64ARRAYstatic shortI16static shortI16ARRAYstatic shortI32static shortI32ARRAYstatic shortI64static shortI64ARRAYstatic shortI8static shortI8ARRAYstatic shortMSGstatic shortOPAQUEstatic shortPRICEstatic shortQUANTITYstatic shortSTRINGstatic shortTIMEstatic shortU16static shortU16ARRAYstatic shortU32static shortU32ARRAYstatic shortU64static shortU64ARRAYstatic shortU8static shortU8ARRAYstatic shortUNKNOWNstatic shortVECTORstatic shortVECTOR_MSGstatic shortVECTOR_PRICEstatic shortVECTOR_STRINGstatic shortVECTOR_TIME
-
Constructor Summary
Constructors Constructor Description MamaFieldDescriptor(int fid, short type, java.lang.String name, java.lang.Object data)Create aMamaFieldDescriptor
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.ObjectgetClosure()Return the user specified data associated with the field descriptor.intgetFid()Return the field identifier.java.lang.StringgetName()Return the human readable name of the field.booleangetTrackModState()shortgetType()Return the data type.static java.lang.StringgetTypeName(short type)voidsetClosure(java.lang.Object closure)Set user specified data to associate with the field descriptor.voidsetTrackModState(boolean on)java.lang.StringtoString()Returns a string suitable for output to a terminal containing the type, id, and name.
-
-
-
Field Detail
-
MSG
public static final short MSG
- See Also:
- Constant Field Values
-
DATETIME
public static final short DATETIME
- See Also:
- Constant Field Values
-
OPAQUE
public static final short OPAQUE
- See Also:
- Constant Field Values
-
STRING
public static final short STRING
- See Also:
- Constant Field Values
-
BOOL
public static final short BOOL
- See Also:
- Constant Field Values
-
CHAR
public static final short CHAR
- See Also:
- Constant Field Values
-
I8
public static final short I8
- See Also:
- Constant Field Values
-
U8
public static final short U8
- See Also:
- Constant Field Values
-
I16
public static final short I16
- See Also:
- Constant Field Values
-
U16
public static final short U16
- See Also:
- Constant Field Values
-
I32
public static final short I32
- See Also:
- Constant Field Values
-
U32
public static final short U32
- See Also:
- Constant Field Values
-
I64
public static final short I64
- See Also:
- Constant Field Values
-
U64
public static final short U64
- See Also:
- Constant Field Values
-
F32
public static final short F32
- See Also:
- Constant Field Values
-
F64
public static final short F64
- See Also:
- Constant Field Values
-
TIME
public static final short TIME
- See Also:
- Constant Field Values
-
PRICE
public static final short PRICE
- See Also:
- Constant Field Values
-
I8ARRAY
public static final short I8ARRAY
- See Also:
- Constant Field Values
-
U8ARRAY
public static final short U8ARRAY
- See Also:
- Constant Field Values
-
I16ARRAY
public static final short I16ARRAY
- See Also:
- Constant Field Values
-
U16ARRAY
public static final short U16ARRAY
- See Also:
- Constant Field Values
-
I32ARRAY
public static final short I32ARRAY
- See Also:
- Constant Field Values
-
U32ARRAY
public static final short U32ARRAY
- See Also:
- Constant Field Values
-
I64ARRAY
public static final short I64ARRAY
- See Also:
- Constant Field Values
-
U64ARRAY
public static final short U64ARRAY
- See Also:
- Constant Field Values
-
F32ARRAY
public static final short F32ARRAY
- See Also:
- Constant Field Values
-
F64ARRAY
public static final short F64ARRAY
- See Also:
- Constant Field Values
-
VECTOR_STRING
public static final short VECTOR_STRING
- See Also:
- Constant Field Values
-
VECTOR_MSG
public static final short VECTOR_MSG
- See Also:
- Constant Field Values
-
VECTOR_TIME
public static final short VECTOR_TIME
- See Also:
- Constant Field Values
-
VECTOR_PRICE
public static final short VECTOR_PRICE
- See Also:
- Constant Field Values
-
QUANTITY
public static final short QUANTITY
- See Also:
- Constant Field Values
-
VECTOR
public static final short VECTOR
- See Also:
- Constant Field Values
-
COLLECTION
public static final short COLLECTION
- See Also:
- Constant Field Values
-
UNKNOWN
public static final short UNKNOWN
- See Also:
- Constant Field Values
-
-
Method Detail
-
getFid
public int getFid()
Return the field identifier.- Returns:
- The fid.
-
getType
public short getType()
Return the data type.- Returns:
- The type.
-
getName
public java.lang.String getName()
Return the human readable name of the field.- Returns:
- The name.
-
toString
public java.lang.String toString()
Returns a string suitable for output to a terminal containing the type, id, and name.- Overrides:
toStringin classjava.lang.Object- Returns:
- A human readable string for the field.
-
setClosure
public void setClosure(java.lang.Object closure)
Set user specified data to associate with the field descriptor.- Parameters:
closure- The data to associate with the descriptor.
-
getClosure
public java.lang.Object getClosure()
Return the user specified data associated with the field descriptor. The closure data has a default value ofnull- Returns:
- The user specified data associated with the field descriptor.
-
getTypeName
public static java.lang.String getTypeName(short type)
-
setTrackModState
public void setTrackModState(boolean on)
-
getTrackModState
public boolean getTrackModState()
-
-