Jörn Kottmann wrote: > 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. I think the generification is correct, because TOP is the JCas version of the FeatureStructure interface.
Another note (http://markmail.org/thread/pafkl3luotd3wkfr - toward the bottom of the thread) suggests additional methods that pass in a class instance, and then use that to specify the returned type. -Marshall > > > Jörn > >