DocumentFigure Class
- java.
lang. Object - com.
azure. ai. contentunderstanding. models. DocumentFigure
- com.
Implements
public class DocumentFigure
implements JsonSerializable<DocumentFigure>
Figure in a document.
Constructor Summary
| Modifier | Constructor | Description |
|---|---|---|
| protected | DocumentFigure(String id) |
Creates an instance of Document |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Document |
fromJson(JsonReader jsonReader)
Reads an instance of Document |
|
Document |
getCaption()
Get the caption property: Figure caption. |
| String |
getDescription()
Get the description property: Description of the figure. |
| List<String> |
getElements()
Get the elements property: Child elements of the figure, excluding any caption or footnotes. |
|
List<Document |
getFootnotes()
Get the footnotes property: List of figure footnotes. |
| String |
getId()
Get the id property: Figure identifier. |
|
Document |
getKind()
Get the kind property: Figure kind. |
|
Semantic |
getRole()
Get the role property: Semantic role of the figure. |
| String |
getSource()
Get the source property: Encoded source that identifies the position of the figure in the content. |
|
Content |
getSpan()
Get the span property: Span of the figure in the markdown content. |
|
Json |
toJson(JsonWriter jsonWriter) |
Methods inherited from java.lang.Object
Constructor Details
DocumentFigure
protected DocumentFigure(String id)
Creates an instance of DocumentFigure class.
Parameters:
Method Details
fromJson
public static DocumentFigure fromJson(JsonReader jsonReader)
Reads an instance of DocumentFigure from the JsonReader.
Parameters:
Returns:
Throws:
getCaption
public DocumentCaption getCaption()
Get the caption property: Figure caption.
Returns:
getDescription
public String getDescription()
Get the description property: Description of the figure.
Returns:
getElements
public List<String> getElements()
Get the elements property: Child elements of the figure, excluding any caption or footnotes.
Returns:
getFootnotes
public List<DocumentFootnote> getFootnotes()
Get the footnotes property: List of figure footnotes.
Returns:
getId
public String getId()
Get the id property: Figure identifier.
Returns:
getKind
public DocumentFigureKind getKind()
Get the kind property: Figure kind.
Returns:
getRole
public SemanticRole getRole()
Get the role property: Semantic role of the figure.
Returns:
getSource
public String getSource()
Get the source property: Encoded source that identifies the position of the figure in the content.
Returns:
getSpan
public ContentSpan getSpan()
Get the span property: Span of the figure in the markdown content.
Returns: