public interface Annotated<TargetType>
Where annotations are conceptually editable such as free text descriptions the editing framework should internally remove the original annotation and add the replacement rather than modifying the previous annotation in place.
Modifier and Type | Method and Description |
---|---|
Edit<? extends TargetType> |
getAddAnnotationEdit(AnnotationChain newAnnotation)
Add new workflow object metadata to this annotated entity
|
Set<? extends AnnotationChain> |
getAnnotations()
Each annotated object contains a bag of metadata object instances
|
Edit<? extends TargetType> |
getRemoveAnnotationEdit(AnnotationChain annotationToRemove)
Remove an annotation object from the this annotated entity
|
void |
setAnnotations(Set<AnnotationChain> annotations) |
Set<? extends AnnotationChain> getAnnotations()
void setAnnotations(Set<AnnotationChain> annotations)
Edit<? extends TargetType> getAddAnnotationEdit(AnnotationChain newAnnotation)
TargetType
- the type of the object being annotatednewAnnotation
- metadata object to add to the annotated objectEdit<? extends TargetType> getRemoveAnnotationEdit(AnnotationChain annotationToRemove)
TargetType
- type of the workflow object from which the annotation is
removedannotationToRemove
- metadata object to removeobjectToAnnotate
- object from which the metadata is removedCopyright © 2015–2016 The Apache Software Foundation. All rights reserved.