Class DocumentTable

java.lang.Object
com.azure.ai.documentintelligence.models.DocumentTable
All Implemented Interfaces:
com.azure.json.JsonSerializable<DocumentTable>

public final class DocumentTable extends Object implements com.azure.json.JsonSerializable<DocumentTable>
A table object consisting table cells arranged in a rectangular layout.
  • Method Details

    • getRowCount

      public int getRowCount()
      Get the rowCount property: Number of rows in the table.
      Returns:
      the rowCount value.
    • getColumnCount

      public int getColumnCount()
      Get the columnCount property: Number of columns in the table.
      Returns:
      the columnCount value.
    • getCells

      public List<DocumentTableCell> getCells()
      Get the cells property: Cells contained within the table.
      Returns:
      the cells value.
    • getBoundingRegions

      public List<BoundingRegion> getBoundingRegions()
      Get the boundingRegions property: Bounding regions covering the table.
      Returns:
      the boundingRegions value.
    • getSpans

      public List<DocumentSpan> getSpans()
      Get the spans property: Location of the table in the reading order concatenated content.
      Returns:
      the spans value.
    • getCaption

      public DocumentCaption getCaption()
      Get the caption property: Caption associated with the table.
      Returns:
      the caption value.
    • getFootnotes

      public List<DocumentFootnote> getFootnotes()
      Get the footnotes property: List of footnotes associated with the table.
      Returns:
      the footnotes value.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<DocumentTable>
      Throws:
      IOException
    • fromJson

      public static DocumentTable fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of DocumentTable from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of DocumentTable if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
      Throws:
      IllegalStateException - If the deserialized JSON object was missing any required properties.
      IOException - If an error occurs while reading the DocumentTable.