Class FieldLocation

java.lang.Object
com.northconcepts.datapipeline.core.FieldLocation

public class FieldLocation extends Object
Represents the location of a field within a data pipeline context. This class captures both the position (row and column) and the actual field and record references. Used primarily for applying conditional styling or formatting based on field position.
See Also:
  • Constructor Details

    • FieldLocation

      public FieldLocation()
      Creates a new FieldLocation with default values.
  • Method Details

    • getRowIndex

      public long getRowIndex()
      Gets the zero-based row index of this field location.
      Returns:
      the row index
    • setRowIndex

      public FieldLocation setRowIndex(long rowIndex)
      Sets the zero-based row index of this field location.
      Parameters:
      rowIndex - the row index to set
      Returns:
      this FieldLocation instance for method chaining
    • getFieldIndex

      public int getFieldIndex()
      Gets the zero-based field index (column position) of this field location.
      Returns:
      the field index
    • setFieldIndex

      public FieldLocation setFieldIndex(int fieldIndex)
      Sets the zero-based field index (column position) of this field location.
      Parameters:
      fieldIndex - the field index to set
      Returns:
      this FieldLocation instance for method chaining
    • getField

      public Field getField()
      Gets the field at this location.
      Returns:
      the field
    • setField

      public FieldLocation setField(Field field)
      Sets the field at this location.
      Parameters:
      field - the field to set
      Returns:
      this FieldLocation instance for method chaining
    • getRecord

      public Record getRecord()
      Gets the record containing the field at this location.
      Returns:
      the record
    • setRecord

      public FieldLocation setRecord(Record record)
      Sets the record containing the field at this location.
      Parameters:
      record - the record to set
      Returns:
      this FieldLocation instance for method chaining
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object