Partilhar via


DocumentParagraph Class

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

Implements

public final class DocumentParagraph
implements JsonSerializable<DocumentParagraph>

A paragraph object consisting with contiguous lines generally with common alignment and spacing.

Method Summary

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

Reads an instance of DocumentParagraph from the JsonReader.

List<BoundingRegion> getBoundingRegions()

Get the boundingRegions property: Bounding regions covering the paragraph.

String getContent()

Get the content property: Concatenated content of the paragraph in reading order.

ParagraphRole getRole()

Get the role property: Semantic role of the paragraph.

List<DocumentSpan> getSpans()

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

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from java.lang.Object

Method Details

fromJson

public static DocumentParagraph fromJson(JsonReader jsonReader)

Reads an instance of DocumentParagraph from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

Returns:

the boundingRegions value.

getContent

public String getContent()

Get the content property: Concatenated content of the paragraph in reading order.

Returns:

the content value.

getRole

public ParagraphRole getRole()

Get the role property: Semantic role of the paragraph.

Returns:

the role value.

getSpans

public List getSpans()

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

Returns:

the spans value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to