DocumentCaption Class
- java.
lang. Object - com.
azure. ai. contentunderstanding. models. DocumentCaption
- com.
Implements
public final class DocumentCaption
implements JsonSerializable<DocumentCaption>
Caption of a table or figure.
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Document |
fromJson(JsonReader jsonReader)
Reads an instance of Document |
| String |
getContent()
Get the content property: Content of the caption. |
| List<String> |
getElements()
Get the elements property: Child elements of the caption. |
| String |
getSource()
Get the source property: Encoded source that identifies the position of the caption in the content. |
|
Content |
getSpan()
Get the span property: Span of the caption in the markdown content. |
|
Json |
toJson(JsonWriter jsonWriter) |
Methods inherited from java.lang.Object
Method Details
fromJson
public static DocumentCaption fromJson(JsonReader jsonReader)
Reads an instance of DocumentCaption from the JsonReader.
Parameters:
Returns:
Throws:
getContent
public String getContent()
Get the content property: Content of the caption.
Returns:
getElements
public List<String> getElements()
Get the elements property: Child elements of the caption.
Returns:
getSource
public String getSource()
Get the source property: Encoded source that identifies the position of the caption in the content.
Returns:
getSpan
public ContentSpan getSpan()
Get the span property: Span of the caption in the markdown content.
Returns: