Class FieldData
java.lang.Object
com.azure.ai.formrecognizer.models.FormElement
com.azure.ai.formrecognizer.models.FieldData
The FieldData model.
-
Constructor Summary
ConstructorDescriptionFieldData
(String text, FieldBoundingBox boundingBox, int pageNumber, List<FormElement> fieldElements) Creates raw OCR FieldData item. -
Method Summary
Modifier and TypeMethodDescriptionBoundingBox property of the element.When `includeFieldElements` is set to true, gets a list of reference elements constituting thisFieldData
.int
Get the 1-based page number in the input document.getText()
The text content of the form element.
-
Constructor Details
-
FieldData
public FieldData(String text, FieldBoundingBox boundingBox, int pageNumber, List<FormElement> fieldElements) Creates raw OCR FieldData item.- Parameters:
text
- The text content of this form element.boundingBox
- The Bounding Box of the recognized field.pageNumber
- the 1 based page number.fieldElements
- The list of element references when includeFieldElements is set to true.
-
-
Method Details
-
getBoundingBox
BoundingBox property of the element.- Overrides:
getBoundingBox
in classFormElement
- Returns:
- the bounding box of the element.
-
getText
The text content of the form element.- Overrides:
getText
in classFormElement
- Returns:
- The text content of the form element.
-
getPageNumber
public int getPageNumber()Get the 1-based page number in the input document.- Overrides:
getPageNumber
in classFormElement
- Returns:
- the page number value.
-
getFieldElements
When `includeFieldElements` is set to true, gets a list of reference elements constituting thisFieldData
.- Returns:
- The unmodifiable list of reference elements constituting this
FieldData
.
-