com.devexperts.qd.kit
Class AbstractDataField

java.lang.Object
  extended by com.devexperts.qd.kit.AbstractDataField
All Implemented Interfaces:
DataField
Direct Known Subclasses:
AbstractDataIntField, AbstractDataObjField

public abstract class AbstractDataField
extends java.lang.Object
implements DataField


Method Summary
 int getIndex()
          Returns index of this field in its parent DataRecord.
 java.lang.String getLocalName()
          Returns local name of this field -- the name of this field that is unique withing the record.
 java.lang.String getName()
          Returns name of this field.
 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.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

setRecord

public final void setRecord(DataRecord record)
Sets reference to parent data record.

Throws:
java.lang.IllegalStateException - if parent record already set to different instance.

toString

public final java.lang.String toString()
Overrides:
toString in class java.lang.Object

getRecord

public final DataRecord getRecord()
Description copied from interface: DataField
Returns parent DataRecord of this field.

Specified by:
getRecord in interface DataField

getIndex

public final int getIndex()
Description copied from interface: DataField
Returns index of this field in its parent DataRecord.

Specified by:
getIndex in interface DataField

getName

public final java.lang.String getName()
Description copied from interface: DataField
Returns name of this field. The name must be unique within the whole 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: "FooRecord.Category", "FooRecord.Amount", etc.

Specified by:
getName in interface DataField

getLocalName

public final java.lang.String getLocalName()
Description copied from interface: DataField
Returns local name of this field -- the name of this field that is unique withing the record.

Specified by:
getLocalName in interface DataField
See Also:
DataField.getName()

getSerialType

public final SerialFieldType getSerialType()
Description copied from interface: DataField
Returns serial type of this field. It describes the serialized form of this field in QTP protocol with enough detail to skip the serialized value of this field if necessary.

Specified by:
getSerialType in interface DataField