Partilhar via


DocumentSection Class

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

Implements

public final class DocumentSection
implements JsonSerializable<DocumentSection>

An object representing a section in the 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.

List<DocumentSpan> getSpans()

Get the spans property: Location of the section in the reading order concatenated 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 the deserialized JSON object was missing any required properties.

getElements

public List getElements()

Get the elements property: Child elements of the section.

Returns:

the elements value.

getSpans

public List getSpans()

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

Returns:

the spans value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to