org.gcube.data.gml.elements
Class AnnotationElements
java.lang.Object
org.gcube.data.gml.elements.InnerElements<GCubeAnnotation>
org.gcube.data.gml.elements.AnnotationElements
- All Implemented Interfaces:
- Iterable<GCubeAnnotation>
public class AnnotationElements
- extends InnerElements<GCubeAnnotation>
- Author:
- Fabio Simeoni (University of Strathclyde)
removeFromThread
public void removeFromThread(GCubeAnnotation a)
throws IllegalStateException
- Removes an annotation and the annotation that follow it in the thread, if any.
- Parameters:
a - the annotation.
- Throws:
IllegalStateException - if an annotation with the given identifier does not exist.
removeFromThread
public GCubeAnnotation removeFromThread(String id)
throws IllegalStateException
- Removes an annotation and the annotation that follow it in the thread, if any.
- Parameters:
id - the annotation identifier.
- Returns:
- the removed annotation.
- Throws:
IllegalStateException - if an annotation with the given identifier does not exist.
threads
public List<AnnotationThread> threads()
- Returns the annotation threads in the document.
- Returns:
- the threads.
Copyright © 2012. All Rights Reserved.