public abstract class AnnotatedData extends CommonData implements AnnotatableData, LoggableData
CommonData
class and implements the
AnnotatableData
interface. Ie. by extending this class a data item
becomes annotatable.AnnotatableData
,
AnnotatedItem
,
Developer documentation: AnnotationsModifier and Type | Field and Description |
---|---|
private AnnotationSetData |
annotationSet |
private Set<AnnotationLink> |
links |
MAX_DESCRIPTION_LENGTH, MAX_NAME_LENGTH
Constructor and Description |
---|
AnnotatedData() |
Modifier and Type | Method and Description |
---|---|
Set<AnnotationLink> |
getAnnotations()
Short-cut to all annotations belonging to this item.
|
AnnotationSetData |
getAnnotationSet()
Get the annotation set that holds the annotations for an item.
|
(package private) void |
setAnnotations(Set<AnnotationLink> links) |
void |
setAnnotationSet(AnnotationSetData annotationSet)
Change the annotation set.
|
getDescription, getName, getRemovedBy, setDescription, setName, setRemovedBy
getItemKey, getProjectKey, setItemKey, setProjectKey
equals, getId, getVersion, hashCode, setId, setVersion, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getId, getVersion
getOwner, setOwner
private AnnotationSetData annotationSet
private Set<AnnotationLink> links
public AnnotationSetData getAnnotationSet()
AnnotatableData
getAnnotationSet
in interface AnnotatableData
AnnotationSetData
item or null if no annotations existpublic void setAnnotationSet(AnnotationSetData annotationSet)
AnnotatableData
setAnnotationSet
in interface AnnotatableData
annotationSet
- Annotation set to change to.public Set<AnnotationLink> getAnnotations()
AnnotatableData
getAnnotations
in interface AnnotatableData
void setAnnotations(Set<AnnotationLink> links)