DocumentAnnotation Class
- java.
lang. Object - com.
azure. ai. contentunderstanding. models. DocumentAnnotation
- com.
Implements
public final class DocumentAnnotation
implements JsonSerializable<DocumentAnnotation>
Annotation in a document, such as a strikethrough or a comment.
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Document |
fromJson(JsonReader jsonReader)
Reads an instance of Document |
| String |
getAuthor()
Get the author property: Annotation author. |
|
List<Document |
getComments()
Get the comments property: Comments associated with the annotation. |
|
Offset |
getCreatedAt()
Get the created |
| String |
getId()
Get the id property: Annotation identifier. |
|
Document |
getKind()
Get the kind property: Annotation kind. |
|
Offset |
getLastModifiedAt()
Get the last |
| String |
getSource()
Get the source property: Position of the annotation. |
|
List<Content |
getSpans()
Get the spans property: Spans of the content associated with the annotation. |
| List<String> |
getTags()
Get the tags property: Tags associated with the annotation. |
|
Json |
toJson(JsonWriter jsonWriter) |
Methods inherited from java.lang.Object
Method Details
fromJson
public static DocumentAnnotation fromJson(JsonReader jsonReader)
Reads an instance of DocumentAnnotation from the JsonReader.
Parameters:
Returns:
Throws:
getAuthor
public String getAuthor()
Get the author property: Annotation author.
Returns:
getComments
public List<DocumentAnnotationComment> getComments()
Get the comments property: Comments associated with the annotation.
Returns:
getCreatedAt
public OffsetDateTime getCreatedAt()
Get the createdAt property: Date and time when the annotation was created.
Returns:
getId
public String getId()
Get the id property: Annotation identifier.
Returns:
getKind
public DocumentAnnotationKind getKind()
Get the kind property: Annotation kind.
Returns:
getLastModifiedAt
public OffsetDateTime getLastModifiedAt()
Get the lastModifiedAt property: Date and time when the annotation was last modified.
Returns:
getSource
public String getSource()
Get the source property: Position of the annotation.
Returns:
getSpans
public List<ContentSpan> getSpans()
Get the spans property: Spans of the content associated with the annotation.
Returns:
getTags
public List<String> getTags()
Get the tags property: Tags associated with the annotation.
Returns: