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()
DataFieldDataRecord of this field.public final int getIndex()
DataFieldDataRecord.public final String getName()
DataFieldDataScheme.
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()
DataFieldnames must be unique in each data scheme.getLocalName in interface DataFieldDataField.getName(),
DataField.getPropertyName()public String getPropertyName()
DataFieldRecordMapping.
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 DataFieldDataField.getLocalName()public final SerialFieldType getSerialType()
DataFieldgetSerialType in interface DataFieldCopyright © 2002–2025 Devexperts LLC. All rights reserved.