Class DSFieldImpl

java.lang.Object
com.caplin.transformer.module.datasrc.DSFieldImpl
All Implemented Interfaces:
DSField

public class DSFieldImpl extends Object implements 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.

  • Constructor Details

    • DSFieldImpl

      public DSFieldImpl(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.

      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

      public String getValue()
      Description copied from interface: DSField

      Gets the value for the field.

      Specified by:
      getValue in interface DSField
      Returns:
      The field's value.
    • setValue

      public void setValue(String fieldValue)
      Description copied from interface: DSField

      Sets the value for the field.

      Specified by:
      setValue in interface DSField
      Parameters:
      fieldValue - The new field value.
    • getFieldInfo

      public FieldInfo getFieldInfo()
      Description copied from interface: DSField

      Get the field information for this field, if available.

      Specified by:
      getFieldInfo in interface DSField
      Returns:
      the FieldInfo for this field, or null if not available
    • setFieldInfo

      public void setFieldInfo(FieldInfo fieldInfo)
      Description copied from interface: DSField

      Sets the field information for the field.

      Specified by:
      setFieldInfo in interface DSField
      Parameters:
      fieldInfo - The new FieldInfo for this field.
    • getFlags

      public int getFlags()
      Description copied from interface: DSField
      Get the flags set on this field.
      Specified by:
      getFlags in interface DSField
      Returns:
      the flags set on this field