Freigeben über


DocumentTable Class

  • java.lang.Object
    • com.azure.ai.contentunderstanding.models.DocumentTable

Implements

public final class DocumentTable
implements JsonSerializable<DocumentTable>

Table in a document, consisting table cells arranged in a rectangular layout.

Method Summary

Modifier and Type Method and Description
static DocumentTable fromJson(JsonReader jsonReader)

Reads an instance of DocumentTable from the JsonReader.

DocumentCaption getCaption()

Get the caption property: Table caption.

List<DocumentTableCell> getCells()

Get the cells property: Cells contained within the table.

int getColumnCount()

Get the columnCount property: Number of columns in the table.

List<DocumentFootnote> getFootnotes()

Get the footnotes property: List of table footnotes.

SemanticRole getRole()

Get the role property: Semantic role of the table.

int getRowCount()

Get the rowCount property: Number of rows in the table.

String getSource()

Get the source property: Encoded source that identifies the position of the table in the content.

ContentSpan getSpan()

Get the span property: Span of the table in the markdown content.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from java.lang.Object

Method Details

fromJson

public static DocumentTable fromJson(JsonReader jsonReader)

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:

IOException

- If the deserialized JSON object was missing any required properties.

getCaption

public DocumentCaption getCaption()

Get the caption property: Table caption.

Returns:

the caption value.

getCells

public List<DocumentTableCell> getCells()

Get the cells property: Cells contained within the table.

Returns:

the cells value.

getColumnCount

public int getColumnCount()

Get the columnCount property: Number of columns in the table.

Returns:

the columnCount value.

getFootnotes

public List<DocumentFootnote> getFootnotes()

Get the footnotes property: List of table footnotes.

Returns:

the footnotes value.

getRole

public SemanticRole getRole()

Get the role property: Semantic role of the table.

Returns:

the role value.

getRowCount

public int getRowCount()

Get the rowCount property: Number of rows in the table.

Returns:

the rowCount value.

getSource

public String getSource()

Get the source property: Encoded source that identifies the position of the table in the content.

Returns:

the source value.

getSpan

public ContentSpan getSpan()

Get the span property: Span of the table in the markdown content.

Returns:

the span value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to