Compartilhar via


DocumentCaption Class

  • java.lang.Object
    • com.azure.ai.documentintelligence.models.DocumentCaption

Implements

public final class DocumentCaption
implements JsonSerializable<DocumentCaption>

A caption object describing a table or figure.

Method Summary

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

Reads an instance of DocumentCaption from the JsonReader.

List<BoundingRegion> getBoundingRegions()

Get the boundingRegions property: Bounding regions covering the caption.

String getContent()

Get the content property: Content of the caption.

List<String> getElements()

Get the elements property: Child elements of the caption.

List<DocumentSpan> getSpans()

Get the spans property: Location of the caption in the reading order concatenated content.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from java.lang.Object

Method Details

fromJson

public static DocumentCaption fromJson(JsonReader jsonReader)

Reads an instance of DocumentCaption from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of DocumentCaption 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.

getBoundingRegions

public List getBoundingRegions()

Get the boundingRegions property: Bounding regions covering the caption.

Returns:

the boundingRegions value.

getContent

public String getContent()

Get the content property: Content of the caption.

Returns:

the content value.

getElements

public List getElements()

Get the elements property: Child elements of the caption.

Returns:

the elements value.

getSpans

public List getSpans()

Get the spans property: Location of the caption in the reading order concatenated content.

Returns:

the spans value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to