|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.devexperts.qd.SerialFieldType
public final class SerialFieldType
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 necessary.
Nested Class Summary | |
---|---|
static interface |
SerialFieldType.IntConverter
|
static interface |
SerialFieldType.ObjConverter
|
Field Summary | |
---|---|
static SerialFieldType |
BYTE
|
static SerialFieldType |
BYTE_ARRAY
|
static SerialFieldType |
COMPACT_INT
|
static SerialFieldType |
CUSTOM_OBJECT
|
static SerialFieldType |
DATE
|
static SerialFieldType |
DECIMAL
|
static SerialFieldType |
INT
|
static int |
MAX_TYPE_ID
Max type id that is supported now for plain field types. |
static int |
MIN_TYPE_ID
Min type id that is supported now for plain field types. |
static int |
REPRESENTATION_MASK
Masks representation bits of type id (encodes details of representation of the field value in the code). |
static SerialFieldType |
SEQUENCE
|
static SerialFieldType |
SERIAL_OBJECT
|
static int |
SERIAL_TYPE_MASK
This mask should be used to check if two types are equal in terms of their serial representations. 4 bits in REPRESENTATION_MASK are used for representation information. |
static SerialFieldType |
SHORT
|
static SerialFieldType |
SHORT_STRING
|
static SerialFieldType |
STRING
|
static SerialFieldType |
TIME
|
static SerialFieldType |
UTF_CHAR
|
static SerialFieldType |
UTF_CHAR_ARRAY
|
static SerialFieldType |
VOID
|
Method Summary | |
---|---|
DataIntField |
createDefaultIntInstance(int index,
java.lang.String name)
|
DataObjField |
createDefaultObjInstance(int index,
java.lang.String name)
|
boolean |
equals(java.lang.Object o)
|
static SerialFieldType |
forId(int id)
Returns standard serial field type for a given type identifier. |
SerialFieldType |
forNamedField(java.lang.String name)
Returns a more specific serial type that shall be used for the field with the specified name. |
int |
getId()
|
SerialFieldType.IntConverter |
getIntConverterFrom(SerialFieldType from)
|
java.lang.String |
getName()
|
SerialFieldType.ObjConverter |
getObjConverterFrom(SerialFieldType from)
|
int |
hashCode()
|
boolean |
hasSameRepresentationAs(SerialFieldType other)
|
boolean |
hasSameSerialTypeAs(SerialFieldType other)
|
boolean |
isObject()
|
java.lang.String |
toString()
|
SerialFieldType |
withName(java.lang.String name)
Creates the same type as this one, but with a different name. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int REPRESENTATION_MASK
public static final int SERIAL_TYPE_MASK
REPRESENTATION_MASK
are used for representation information.
public static final int MIN_TYPE_ID
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.
public static final int MAX_TYPE_ID
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.
public static final SerialFieldType VOID
public static final SerialFieldType BYTE
public static final SerialFieldType UTF_CHAR
public static final SerialFieldType SHORT
public static final SerialFieldType INT
public static final SerialFieldType COMPACT_INT
public static final SerialFieldType BYTE_ARRAY
public static final SerialFieldType UTF_CHAR_ARRAY
public static final SerialFieldType DECIMAL
public static final SerialFieldType SHORT_STRING
public static final SerialFieldType TIME
public static final SerialFieldType SEQUENCE
public static final SerialFieldType DATE
public static final SerialFieldType STRING
public static final SerialFieldType CUSTOM_OBJECT
public static final SerialFieldType SERIAL_OBJECT
Method Detail |
---|
public int getId()
public java.lang.String getName()
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public boolean isObject()
public boolean hasSameSerialTypeAs(SerialFieldType other)
public boolean hasSameRepresentationAs(SerialFieldType other)
public SerialFieldType.IntConverter getIntConverterFrom(SerialFieldType from)
public SerialFieldType.ObjConverter getObjConverterFrom(SerialFieldType from)
public SerialFieldType withName(java.lang.String name)
public static SerialFieldType forId(int id)
public SerialFieldType forNamedField(java.lang.String name)
COMPACT_INT
, DECIMAL
, SHORT_STRING
, and TIME
base types this
method looks at the suffix of the name, for other base types just the base type itself is returned.
public DataIntField createDefaultIntInstance(int index, java.lang.String name)
public DataObjField createDefaultObjInstance(int index, java.lang.String name)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |