Freigeben über


DocumentSection Class

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

Implements

public final class DocumentSection
implements JsonSerializable<DocumentSection>

Section in a document.

Method Summary

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

Reads an instance of DocumentSection from the JsonReader.

List<String> getElements()

Get the elements property: Child elements of the section.

ContentSpan getSpan()

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

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from java.lang.Object

Method Details

fromJson

public static DocumentSection fromJson(JsonReader jsonReader)

Reads an instance of DocumentSection from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of DocumentSection if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the DocumentSection.

getElements

public List<String> getElements()

Get the elements property: Child elements of the section.

Returns:

the elements value.

getSpan

public ContentSpan getSpan()

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

Returns:

the span value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to