public abstract class AbstractDataField extends Object implements DataField
Modifier and Type | Method and Description |
---|---|
static String |
getDefaultPropertyName(String localName) |
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.
|
void |
setRecord(DataRecord record)
Sets reference to parent data record.
|
String |
toString() |
public final void setRecord(DataRecord record)
IllegalStateException
- if parent record already set to different instance.public final DataRecord getRecord()
DataField
DataRecord
of this field.public final int getIndex()
DataField
DataRecord
.public final String getName()
DataField
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.public final String getLocalName()
DataField
names
must be unique in each data scheme.getLocalName
in interface DataField
DataField.getName()
,
DataField.getPropertyName()
public String getPropertyName()
DataField
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.
getPropertyName
in interface DataField
DataField.getLocalName()
public final SerialFieldType getSerialType()
DataField
getSerialType
in interface DataField
Copyright © 2002–2025 Devexperts LLC. All rights reserved.