public interface DataField
DataIntField
and DataObjField
. Those two interfaces are
the only actual interfaces that are used for all data fields in QD --
any data field instance implements exactly one of them.Modifier and Type | Method and Description |
---|---|
int |
getIndex()
Returns index of this field in its parent
DataRecord . |
String |
getLocalName()
Returns local name of this field -- the name of this field that is unique within the record
and identifies this field in QTP binary protocol.
|
String |
getName()
Returns name of this field.
|
String |
getPropertyName()
Returns property name of this field -- the name of this field that is unique within the record
and identifies this field in QTP text formats.
|
DataRecord |
getRecord()
Returns parent
DataRecord of this field. |
SerialFieldType |
getSerialType()
Returns serial type of this field.
|
String |
getString(RecordCursor cursor) |
void |
read(com.devexperts.io.BufferedInput in,
RecordCursor cursor) |
void |
setString(RecordCursor cursor,
String value) |
void |
write(com.devexperts.io.BufferedOutput out,
RecordCursor cursor) |
DataRecord getRecord()
DataRecord
of this field.int getIndex()
DataRecord
.String getName()
DataScheme
.
It is required that this full field name consists of its parent record name
followed by dot ('.') followed by local name
of this filed
like these: "Quote.Bid.Price", "Quote.Bid.Exchange", "Trade.Last.Price",
"TimeAndSale.Price", etc.String getLocalName()
names
must be unique in each data scheme.getName()
,
getPropertyName()
String getPropertyName()
RecordMapping
.
The property name serves as an alternative identification in QTP binary protocol, too. Local names and property names should not conflict in the record.
By default, property names are constructed from local names
by
dropping dots ('.') inside them using
AbstractDataField.getDefaultPropertyName
method, but RecordMapping
can provide custom property names with
getNonDefaultPropertyName
method.
getLocalName()
SerialFieldType getSerialType()
String getString(RecordCursor cursor)
void setString(RecordCursor cursor, String value)
void write(com.devexperts.io.BufferedOutput out, RecordCursor cursor) throws IOException
IOException
void read(com.devexperts.io.BufferedInput in, RecordCursor cursor) throws IOException
IOException
Copyright © 2002–2025 Devexperts LLC. All rights reserved.