public abstract class TextAnnotationViewReader extends Object implements Iterable<TextAnnotation>, IResetableIterator<TextAnnotation>
Modifier and Type | Field and Description |
---|---|
protected IResetableIterator<TextAnnotation> |
textAnnotations |
protected String |
viewName |
Constructor and Description |
---|
TextAnnotationViewReader(String viewName,
IResetableIterator<TextAnnotation> textAnnotations) |
Modifier and Type | Method and Description |
---|---|
protected abstract View |
getViewToAdd(TextAnnotation ta,
String viewName) |
boolean |
hasNext() |
Iterator<TextAnnotation> |
iterator() |
TextAnnotation |
next() |
void |
remove() |
void |
reset() |
protected final String viewName
protected final IResetableIterator<TextAnnotation> textAnnotations
public TextAnnotationViewReader(String viewName, IResetableIterator<TextAnnotation> textAnnotations)
public void reset()
reset
in interface IResetableIterator<TextAnnotation>
public void remove()
remove
in interface Iterator<TextAnnotation>
public Iterator<TextAnnotation> iterator()
iterator
in interface Iterable<TextAnnotation>
public TextAnnotation next()
next
in interface Iterator<TextAnnotation>
public boolean hasNext()
hasNext
in interface Iterator<TextAnnotation>
protected abstract View getViewToAdd(TextAnnotation ta, String viewName)
Copyright © 2015. All rights reserved.