FormTableCell Class
- java.
lang. Object - com.
azure. ai. formrecognizer. models. FormElement - com.
azure. ai. formrecognizer. models. FormTableCell
- com.
- com.
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 Form |
Method Summary
Modifier and Type | Method and Description |
---|---|
Field |
getBoundingBox()
Bounding |
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<Form |
getFieldElements()
When include |
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
Constructs a FormTableCell object.
Parameters:
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:
getColumnSpan
public int getColumnSpan()
Get the number of columns spanned by this cell.
Returns:
getConfidence
public float getConfidence()
Get the confidence value of the recognized text of the cell.
Returns:
getFieldElements
public List
When includeFieldElements is set to true, gets the list of references to the elements constituting this table cell.
Returns:
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:
getRowSpan
public int getRowSpan()
Get the number of rows spanned by this cell.
Returns:
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:
isHeader
public boolean isHeader()
Get the boolean if the current cell a header cell.
Returns:
Applies to
Azure SDK for Java