Package com.caplin.datasrc.interfaces
Interface DSField
- All Known Implementing Classes:
DSFieldImpl
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
FieldsModifier and TypeFieldDescriptionstatic final intFlag used internally to identify that the DSField represents an object to be inserted in a container (byDSContainer.insertObject(java.lang.String, int)).static final intThe 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.intgetFlags()Get the flags set on this field.getValue()Gets the value for the field.voidsetFieldInfo(FieldInfo fieldInfo) Sets the field information for the field.voidSets 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
FieldInfofor 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
-