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 |
MAX_DESCRIPTION_LENGTH, MAX_NAME_LENGTH
Constructor and Description |
---|
AnnotatedData() |
Modifier and Type | Method and Description |
---|---|
java.util.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(java.util.Set<AnnotationLink> links) |
void |
setAnnotationSet(AnnotationSetData annotationSet)
Change the annotation set.
|
getDescription, getName, isRemoved, setDescription, setName, setRemoved
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
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 java.util.Set<AnnotationLink> getAnnotations()
AnnotatableData
getAnnotations
in interface AnnotatableData
void setAnnotations(java.util.Set<AnnotationLink> links)