Class DSFieldImpl
java.lang.Object
com.caplin.transformer.module.datasrc.DSFieldImpl
- All Implemented Interfaces:
DSField
Transformer module implementation of the DSField interface.
This class has the default (package protected) modifier to prevent the end user from being able to access this class directly.
-
Field Summary
Fields inherited from interface com.caplin.datasrc.interfaces.DSField
F_CONTAINER_INSERT_AT, MAX_FLAG_VALUE
-
Constructor Summary
ConstructorDescriptionDSFieldImpl
(long dsDataPointer, int fieldIndex, int fieldNumber, String fieldValue) Constructs a DSFieldImpl with the specified pointer to the underlying ds_data struct, index, field number and value. -
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.
-
Constructor Details
-
DSFieldImpl
Constructs a DSFieldImpl with the specified pointer to the underlying ds_data struct, index, field number and value.
This constructor has the default (package protected) modifier to prevent the end user from being able to instantiate this class.
- Parameters:
dsDataPointer
- The pointer to the C ds_data struct that holds the state information for the update.fieldIndex
- The index of the field within the ds_data struct.fieldNumber
- The field number.fieldValue
- The value of the field.
-
-
Method Details
-
getValue
Description copied from interface:DSField
Gets the value for the field.
-
setValue
Description copied from interface:DSField
Sets the value for the field.
-
getFieldInfo
Description copied from interface:DSField
Get the field information for this field, if available.
- Specified by:
getFieldInfo
in interfaceDSField
- Returns:
- the
FieldInfo
for this field, or null if not available
-
setFieldInfo
Description copied from interface:DSField
Sets the field information for the field.
- Specified by:
setFieldInfo
in interfaceDSField
- Parameters:
fieldInfo
- The new FieldInfo for this field.
-
getFlags
public int getFlags()Description copied from interface:DSField
Get the flags set on this field.
-