Class FieldLocation
java.lang.Object
com.northconcepts.datapipeline.core.FieldLocation
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleangetField()Gets the field at this location.intGets the zero-based field index (column position) of this field location.Gets the record containing the field at this location.longGets the zero-based row index of this field location.inthashCode()Sets the field at this location.setFieldIndex(int fieldIndex) Sets the zero-based field index (column position) of this field location.Sets the record containing the field at this location.setRowIndex(long rowIndex) Sets the zero-based row index of this field location.toString()
-
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
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
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
Gets the field at this location.- Returns:
- the field
-
setField
Sets the field at this location.- Parameters:
field- the field to set- Returns:
- this FieldLocation instance for method chaining
-
getRecord
Gets the record containing the field at this location.- Returns:
- the record
-
setRecord
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() -
equals
-
toString
-