public abstract class AbstractAnnotatedThing<T> extends Object implements Annotated<T>
Constructor and Description |
---|
AbstractAnnotatedThing() |
Modifier and Type | Method and Description |
---|---|
Edit<T> |
getAddAnnotationEdit(AnnotationChain newAnnotation)
Add new workflow object metadata to this annotated entity
|
Set<AnnotationChain> |
getAnnotations()
Return the set of annotations bound to this annotated object, the set
returned is an unmodifiable copy of the internal annotation set, if you
need to modify the annotations you should use the get methods for Edit
objects to do so.
|
Edit<T> |
getRemoveAnnotationEdit(AnnotationChain annotationToRemove)
Remove an annotation object from the this annotated entity
|
void |
setAnnotations(Set<AnnotationChain> annotations)
Set the annotation chains associated with this annotated object.
|
public final Set<AnnotationChain> getAnnotations()
getAnnotations
in interface Annotated<T>
Annotated.getAnnotations()
public final void setAnnotations(Set<AnnotationChain> annotations)
setAnnotations
in interface Annotated<T>
annotations
- public final Edit<T> getAddAnnotationEdit(AnnotationChain newAnnotation)
Annotated
getAddAnnotationEdit
in interface Annotated<T>
newAnnotation
- metadata object to add to the annotated objectnet.sf.taverna.t2.annotation.Annotated#getAddAnnotationEdit(net.sf.taverna.t2.annotation.WorkflowAnnotation)
public final Edit<T> getRemoveAnnotationEdit(AnnotationChain annotationToRemove)
Annotated
getRemoveAnnotationEdit
in interface Annotated<T>
annotationToRemove
- metadata object to removenet.sf.taverna.t2.annotation.Annotated#getRemoveAnnotationEdit(net.sf.taverna.t2.annotation.WorkflowAnnotation)
Copyright © 2015–2016 The Apache Software Foundation. All rights reserved.