public interface DSField
This interface should be implemented by a class that represents a field number/value pair. The field number defines what data the field represents (e.g. a bid price, or a company name). The value is the actual value for that data (e.g. 53.5, or Caplin Systems Ltd).
DSData.elements()
,
DSData.iterator()
Modifier and Type | Field and Description |
---|---|
static int |
F_CONTAINER_INSERT_AT
Flag used internally to identify that the DSField represents an object to be inserted in a container (by
DSContainer.insertObject(java.lang.String, int) ). |
static int |
MAX_FLAG_VALUE
The maximum value permissible for the OR of all the flags on a DSField.
|
Modifier and Type | Method and Description |
---|---|
FieldInfo |
getFieldInfo()
Get the field information for this field, if available.
|
int |
getFlags()
Get the flags set on this field.
|
String |
getValue()
Gets the value for the field.
|
void |
setFieldInfo(FieldInfo fieldInfo)
Sets the field information for the field.
|
void |
setValue(String value)
Sets the value for the field.
|
static final int MAX_FLAG_VALUE
static final int F_CONTAINER_INSERT_AT
DSContainer.insertObject(java.lang.String, int)
).
This flag is used solely by implementations of DSContainer
.String getValue()
Gets the value for the field.
void setValue(String value)
Sets the value for the field.
value
- The new field value.FieldInfo getFieldInfo()
Get the field information for this field, if available.
FieldInfo
for this field, or null if not availablevoid setFieldInfo(FieldInfo fieldInfo)
Sets the field information for the field.
fieldInfo
- The new FieldInfo for this field.int getFlags()
Please send bug reports and comments to Caplin support