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
ConstructorsConstructorDescriptionDSFieldImpl(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.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.
-
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:DSFieldGets the value for the field.
-
setValue
Description copied from interface:DSFieldSets the value for the field.
-
getFieldInfo
Description copied from interface:DSFieldGet the field information for this field, if available.
- Specified by:
getFieldInfoin interfaceDSField- Returns:
- the
FieldInfofor this field, or null if not available
-
setFieldInfo
Description copied from interface:DSFieldSets the field information for the field.
- Specified by:
setFieldInfoin interfaceDSField- Parameters:
fieldInfo- The new FieldInfo for this field.
-
getFlags
public int getFlags()Description copied from interface:DSFieldGet the flags set on this field.
-