Package com.caplin.datasource.interfaces
Interface DSField
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).
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Flag used internally to identify that the DSField represents an object to be inserted in a container (byDSContainer.insertObject(java.lang.String, int)
).static final int
The maximum value permissible for the OR of all the flags on a DSField. -
Method Summary
Modifier and TypeMethodDescriptionGet the field information for this field, if available.int
getFlags()
Get the flags set on this field.getValue()
Gets the value for the field.void
setFieldInfo
(FieldInfo fieldInfo) Sets the field information for the field.void
Sets the value for the field.
-
Field Details
-
MAX_FLAG_VALUE
static final int MAX_FLAG_VALUEThe maximum value permissible for the OR of all the flags on a DSField.- See Also:
-
F_CONTAINER_INSERT_AT
static final int F_CONTAINER_INSERT_ATFlag used internally to identify that the DSField represents an object to be inserted in a container (byDSContainer.insertObject(java.lang.String, int)
). This flag is used solely by implementations ofDSContainer
.- See Also:
-
-
Method Details
-
getValue
String getValue()Gets the value for the field.
- Returns:
- The field's value.
-
setValue
Sets the value for the field.
- Parameters:
value
- The new field value.
-
getFieldInfo
FieldInfo getFieldInfo()Get the field information for this field, if available.
- Returns:
- the
FieldInfo
for this field, or null if not available
-
setFieldInfo
Sets the field information for the field.
- Parameters:
fieldInfo
- The new FieldInfo for this field.
-
getFlags
int getFlags()Get the flags set on this field.- Returns:
- the flags set on this field
-