public class AnnotationImpl extends Object implements Annotation
Modifier and Type | Field and Description |
---|---|
protected String |
color |
protected String |
content |
protected Calendar |
creationDate |
protected Calendar |
date |
protected String |
documentId |
protected String |
flags |
protected String |
id |
protected String |
interiorColor |
protected String |
lastModifier |
protected double |
opacity |
protected long |
page |
protected String |
parentId |
protected String |
position |
protected String |
security |
protected String |
subject |
protected String |
type |
protected String |
xpath |
Modifier | Constructor and Description |
---|---|
|
AnnotationImpl() |
protected |
AnnotationImpl(DocumentModel annotationModel) |
Modifier and Type | Method and Description |
---|---|
String |
getColor()
Gets annotation color.
|
String |
getContent()
Gets annotation content in text format.
|
Calendar |
getCreationDate()
Gets annotation creation date.
|
Calendar |
getDate()
Gets annotation modification date.
|
String |
getDocumentId()
Gets the annotated document id.
|
String |
getFlags()
Gets annotation list of flags, separated by commas.
|
String |
getId()
Gets annotation id.
|
String |
getInteriorColor()
Gets annotation interior color.
|
String |
getLastModifier()
Gets annotation last modifier.
|
double |
getOpacity()
Gets annotation opacity.
|
long |
getPage()
Gets annotation page.
|
String |
getParentId()
Gets annotation parent id.
|
String |
getPosition()
Gets annotation position.
|
String |
getSecurity()
Gets annotation security.
|
String |
getSubject()
Gets annotation subject.
|
String |
getType()
Gets annotation type.
|
String |
getXpath()
Gets the xpath of annotated blob in the document.
|
void |
setColor(String color)
Sets annotation color.
|
void |
setContent(String content)
Sets annotation content.
|
void |
setCreationDate(Calendar creationDate)
Sets annotation creation date.
|
void |
setDate(Calendar date)
Sets annotation modification date.
|
void |
setDocumentId(String documentId)
Sets the annotated document id.
|
void |
setFlags(String flags)
Sets annotation list of flags.
|
void |
setId(String id)
Sets annotation id.
|
void |
setInteriorColor(String color)
Sets annotation interior color.
|
void |
setLastModifier(String lastModifier)
Sets annotation last modifier.
|
void |
setOpacity(double opacity)
Sets annotation opacity.
|
void |
setPage(long page)
Sets annotation page.
|
void |
setParentId(String parentId)
Sets annotation parent id.
|
void |
setPosition(String position)
Sets annotation position.
|
void |
setSecurity(String security)
Sets annotation security.
|
void |
setSubject(String subject)
Sets annotation subject.
|
void |
setType(String type)
Sets annotation type.
|
void |
setXpath(String xpath)
Sets the xpath of annotated blob in the document.
|
protected String interiorColor
protected String documentId
protected String lastModifier
protected long page
protected Calendar creationDate
protected double opacity
public AnnotationImpl()
protected AnnotationImpl(DocumentModel annotationModel)
public String getId()
Annotation
getId
in interface Annotation
public void setId(String id)
Annotation
setId
in interface Annotation
id
- the idpublic String getType()
Annotation
getType
in interface Annotation
public void setType(String type)
Annotation
setType
in interface Annotation
type
- the typepublic String getColor()
Annotation
getColor
in interface Annotation
public void setColor(String color)
Annotation
setColor
in interface Annotation
color
- the color, expressed in hexadecimalpublic String getInteriorColor()
Annotation
getInteriorColor
in interface Annotation
public void setInteriorColor(String color)
Annotation
setInteriorColor
in interface Annotation
color
- the color, expressed in hexadecimalpublic Calendar getDate()
Annotation
getDate
in interface Annotation
public void setDate(Calendar date)
Annotation
setDate
in interface Annotation
date
- the modification datepublic String getFlags()
Annotation
getFlags
in interface Annotation
public void setFlags(String flags)
Annotation
setFlags
in interface Annotation
flags
- the flags, separated by commaspublic String getDocumentId()
Annotation
getDocumentId
in interface Annotation
public void setDocumentId(String documentId)
Annotation
setDocumentId
in interface Annotation
documentId
- the annotated document idpublic String getXpath()
Annotation
getXpath
in interface Annotation
public void setXpath(String xpath)
Annotation
setXpath
in interface Annotation
xpath
- the xpathpublic String getLastModifier()
Annotation
getLastModifier
in interface Annotation
public void setLastModifier(String lastModifier)
Annotation
setLastModifier
in interface Annotation
lastModifier
- the last modifierpublic long getPage()
Annotation
getPage
in interface Annotation
public void setPage(long page)
Annotation
setPage
in interface Annotation
page
- the pagepublic String getPosition()
Annotation
getPosition
in interface Annotation
public void setPosition(String position)
Annotation
setPosition
in interface Annotation
position
- the positionpublic Calendar getCreationDate()
Annotation
getCreationDate
in interface Annotation
public void setCreationDate(Calendar creationDate)
Annotation
setCreationDate
in interface Annotation
creationDate
- the creation datepublic double getOpacity()
Annotation
getOpacity
in interface Annotation
public void setOpacity(double opacity)
Annotation
setOpacity
in interface Annotation
opacity
- the opacitypublic String getSubject()
Annotation
getSubject
in interface Annotation
public void setSubject(String subject)
Annotation
setSubject
in interface Annotation
subject
- the subjectpublic String getSecurity()
Annotation
getSecurity
in interface Annotation
public void setSecurity(String security)
Annotation
setSecurity
in interface Annotation
security
- the securitypublic String getContent()
Annotation
getContent
in interface Annotation
public void setContent(String content)
Annotation
setContent
in interface Annotation
content
- the content in text formatpublic String getParentId()
Annotation
getParentId
in interface Annotation
public void setParentId(String parentId)
Annotation
setParentId
in interface Annotation
parentId
- the parent idCopyright © 2018 Nuxeo. All rights reserved.