FormTableCell Class

public final class FormTableCell
extends FormElement

Represents a cell contained in a table recognized from the input document.

Constructor Summary

Constructor Description
FormTableCell(int rowIndex, int columnIndex, int rowSpan, int columnSpan, String text, FieldBoundingBox boundingBox, float confidence, boolean isHeader, boolean isFooter, int pageNumber, List<FormElement> fieldElements)

Constructs a FormTableCell object.

Method Summary

Modifier and Type Method and Description
FieldBoundingBox getBoundingBox()

BoundingBox property of the element.

int getColumnIndex()

Get the column index of the cell.

int getColumnSpan()

Get the number of columns spanned by this cell.

float getConfidence()

Get the confidence value of the recognized text of the cell.

List<FormElement> getFieldElements()

When includeFieldElements is set to true, gets the list of references to the elements constituting this table cell.

int getPageNumber()

Get the 1-based page number in the input document.

int getRowIndex()

Get the row index of the cell.

int getRowSpan()

Get the number of rows spanned by this cell.

String getText()

The text content of the form element.

boolean isFooter()

Get the boolean if the current cell a footer cell.

boolean isHeader()

Get the boolean if the current cell a header cell.

Methods inherited from FormElement

Methods inherited from java.lang.Object

Constructor Details

FormTableCell

public FormTableCell(int rowIndex, int columnIndex, int rowSpan, int columnSpan, String text, FieldBoundingBox boundingBox, float confidence, boolean isHeader, boolean isFooter, int pageNumber, List fieldElements)

Constructs a FormTableCell object.

Parameters:

rowIndex - the row index of the cell.
columnIndex - the column index of the cell.
rowSpan - the number of rows spanned by this cell.
columnSpan - the number of columns spanned by this cell.
text - the recognized text value.
boundingBox - the bounding box properties of the cell.
confidence - the confidence value of the recognized text.
isHeader - the boolean indicating if the current cell a header cell?
isFooter - the boolean indicating if the current cell a footer cell?
pageNumber - the 1 based page number of the cell
fieldElements - a list of references to the elements constituting this table cell.

Method Details

getBoundingBox

public FieldBoundingBox getBoundingBox()

BoundingBox property of the element.

Overrides:

FormTableCell.getBoundingBox()

getColumnIndex

public int getColumnIndex()

Get the column index of the cell.

Returns:

the column index of the cell.

getColumnSpan

public int getColumnSpan()

Get the number of columns spanned by this cell.

Returns:

the number of columns spanned by this cell.

getConfidence

public float getConfidence()

Get the confidence value of the recognized text of the cell.

Returns:

the confidence value of the recognized text of the cell.

getFieldElements

public List getFieldElements()

When includeFieldElements is set to true, gets the list of references to the elements constituting this table cell.

Returns:

the unmodifiable list of list of references to the text elements constituting this table cell.

getPageNumber

public int getPageNumber()

Get the 1-based page number in the input document.

Overrides:

FormTableCell.getPageNumber()

getRowIndex

public int getRowIndex()

Get the row index of the cell.

Returns:

the row index of the cell.

getRowSpan

public int getRowSpan()

Get the number of rows spanned by this cell.

Returns:

the number of rows spanned by this cell.

getText

public String getText()

The text content of the form element.

Overrides:

FormTableCell.getText()

isFooter

public boolean isFooter()

Get the boolean if the current cell a footer cell.

Returns:

the boolean indicating if the current cell is a footer cell.

isHeader

public boolean isHeader()

Get the boolean if the current cell a header cell.

Returns:

the boolean indicating if the current cell a header cell.

Applies to