com.devexperts.qd
Class SerialFieldType
java.lang.Object
com.devexperts.qd.SerialFieldType
public final class SerialFieldType
- extends java.lang.Object
Describes serial type of data fields
that are transferred via QTP.
It describes the serialized form of the field in QTP protocol with
enough detail to skip the serialized value of the field if neccessary.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
MIN_TYPE_ID
public static final int MIN_TYPE_ID
- Min type id that is supported now for plain field types.
Type ids beyond
MIN_TYPE_ID
to MAX_TYPE_ID
can have additional information attached
to them in the future, and the code should not attempt to parse their descriptions without knowing them.
- See Also:
- Constant Field Values
MAX_TYPE_ID
public static final int MAX_TYPE_ID
- Max type id that is supported now for plain field types.
Type ids beyond
MIN_TYPE_ID
to MAX_TYPE_ID
can have additional information attached
to them in the future, and the code should not attempt to parse their descriptions without knowing them.
- See Also:
- Constant Field Values
TYPE_ID_MASK
public static final int TYPE_ID_MASK
- This mask should be used to check if two types are equal in terms of their serial representations.
4 bits are reserved for future presentation extensions that do not affect serial form of the type.
- See Also:
- Constant Field Values
VOID
public static final SerialFieldType VOID
BYTE
public static final SerialFieldType BYTE
UTF_CHAR
public static final SerialFieldType UTF_CHAR
SHORT
public static final SerialFieldType SHORT
INT
public static final SerialFieldType INT
COMPACT_INT
public static final SerialFieldType COMPACT_INT
BYTE_ARRAY
public static final SerialFieldType BYTE_ARRAY
UTF_CHAR_ARRAY
public static final SerialFieldType UTF_CHAR_ARRAY
DECIMAL
public static final SerialFieldType DECIMAL
SHORT_STRING
public static final SerialFieldType SHORT_STRING
STRING
public static final SerialFieldType STRING
CUSTOM_OBJECT
public static final SerialFieldType CUSTOM_OBJECT
SERIAL_OBJECT
public static final SerialFieldType SERIAL_OBJECT
getId
public int getId()
getName
public java.lang.String getName()
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
isObject
public boolean isObject()
canReadId
public boolean canReadId(int id)
getIntCoverterFrom
public SerialFieldType.IntConverter getIntCoverterFrom(SerialFieldType from)
getObjCoverterFrom
public SerialFieldType.ObjConverter getObjCoverterFrom(SerialFieldType from)
createDefaultIntInstance
public static DataIntField createDefaultIntInstance(int type_id,
int index,
java.lang.String name)
createDefaultObjInstance
public static DataObjField createDefaultObjInstance(int type_id,
int index,
java.lang.String name)