uima-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jörn Kottmann <kottm...@gmail.com>
Subject generics: JFSIndexRepository
Date Mon, 24 Aug 2009 10:55:18 GMT
public interface JFSIndexRepository {

  FSIndex<TOP> getIndex(String label);
  FSIndex<TOP> getIndex(String label, int type);
  AnnotationIndex<Annotation> getAnnotationIndex();
  AnnotationIndex<Annotation> getAnnotationIndex(int type);
  Iterator<FSIndex<Top>> getIndexes();
  FSIterator<TOP> getAllIndexedFS(Type aType);
  FSIterator<TOP> getAllIndexedFS(int aType);

Is the above generification correct ?

We could use FeatureStructure instead of TOP, I am not sure
whats better.


View raw message