Freigeben über


DocumentFootnote Class

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

Implements

public final class DocumentFootnote
implements JsonSerializable<DocumentFootnote>

Footnote of a table or figure.

Method Summary

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

Reads an instance of DocumentFootnote from the JsonReader.

String getContent()

Get the content property: Content of the footnote.

List<String> getElements()

Get the elements property: Child elements of the footnote.

String getSource()

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

ContentSpan getSpan()

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

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from java.lang.Object

Method Details

fromJson

public static DocumentFootnote fromJson(JsonReader jsonReader)

Reads an instance of DocumentFootnote from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

getContent

public String getContent()

Get the content property: Content of the footnote.

Returns:

the content value.

getElements

public List<String> getElements()

Get the elements property: Child elements of the footnote.

Returns:

the elements value.

getSource

public String getSource()

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

Returns:

the source value.

getSpan

public ContentSpan getSpan()

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

Returns:

the span value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to