public class Annotation extends Object implements Serializable
Modifier and Type | Class and Description |
---|---|
static class |
Annotation.AnnotationType
Enum for Annotation types
|
Constructor and Description |
---|
Annotation() |
Modifier and Type | Method and Description |
---|---|
Actor |
getActor() |
String |
getColor() |
Date |
getCreated() |
String |
getCreatedBy() |
String |
getId() |
String |
getText() |
String |
getTitle() |
Annotation.AnnotationType |
getType() |
int |
getVersion() |
void |
setActor(Actor actor) |
void |
setColor(String color) |
void |
setCreated(Date created) |
void |
setCreatedBy(String createdBy) |
void |
setId(String id) |
void |
setText(String text) |
void |
setTitle(String title) |
void |
setType(Annotation.AnnotationType type) |
void |
setVersion(int version) |
public Actor getActor()
public void setActor(Actor actor)
actor
- Actor referenced in the Annotationpublic String getColor()
public void setColor(String color)
color
- String hex colour for the Annotationpublic Date getCreated()
public void setCreated(Date created)
created
- Date the Annotation was createdpublic String getCreatedBy()
public void setCreatedBy(String createdBy)
createdBy
- String id of the creator of the Annotation, auto-generatedpublic String getId()
public void setId(String id)
id
- String id of the Annotationpublic String getText()
public void setText(String text)
text
- String body of text to send inside the Annotation. May include a subset of markdownpublic String getTitle()
public void setTitle(String title)
title
- String title of the Annotation. May include a subset of markdownpublic Annotation.AnnotationType getType()
public void setType(Annotation.AnnotationType type)
type
- String type of the Annotation, default is "generic"public int getVersion()
public void setVersion(int version)
version
- int version of the AnnotationCopyright © 2018 OpenNTF. All rights reserved.