Class DocumentFigure
java.lang.Object
com.azure.ai.documentintelligence.models.DocumentFigure
- All Implemented Interfaces:
com.azure.json.JsonSerializable<DocumentFigure>
public final class DocumentFigure
extends Object
implements com.azure.json.JsonSerializable<DocumentFigure>
An object representing a figure in the document.
-
Method Summary
Modifier and TypeMethodDescriptionstatic DocumentFigure
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of DocumentFigure from the JsonReader.Get the boundingRegions property: Bounding regions covering the figure.Get the caption property: Caption associated with the figure.Get the elements property: Child elements of the figure, excluding any caption or footnotes.Get the footnotes property: List of footnotes associated with the figure.getId()
Get the id property: Figure ID.getSpans()
Get the spans property: Location of the figure in the reading order concatenated content.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Method Details
-
getBoundingRegions
Get the boundingRegions property: Bounding regions covering the figure.- Returns:
- the boundingRegions value.
-
getSpans
Get the spans property: Location of the figure in the reading order concatenated content.- Returns:
- the spans value.
-
getElements
Get the elements property: Child elements of the figure, excluding any caption or footnotes.- Returns:
- the elements value.
-
getCaption
Get the caption property: Caption associated with the figure.- Returns:
- the caption value.
-
getFootnotes
Get the footnotes property: List of footnotes associated with the figure.- Returns:
- the footnotes value.
-
getId
Get the id property: Figure ID.- Returns:
- the id value.
-
toJson
- Specified by:
toJson
in interfacecom.azure.json.JsonSerializable<DocumentFigure>
- Throws:
IOException
-
fromJson
Reads an instance of DocumentFigure from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of DocumentFigure if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IllegalStateException
- If the deserialized JSON object was missing any required properties.IOException
- If an error occurs while reading the DocumentFigure.
-