On 11/21/06, Marshall Schor <[EMAIL PROTECTED]> wrote:
I'm changing JTextAnnotator_ImplBase to JCasAnnotator_ImplBase, because
of the Javadoc comments
indicating that JTextAnnotator_ImplBase is now outmoded (still works -
for backwards
compatibility, but new stuff should use the new approach).
The rest of the paragraph - about implementing an "interface" - is there
an interface to implement in the v2 design?
JCasAnnotator_ImplBase is an abstract class, and doesn't implement an
interface.
The interface is called AnalysisComponent. JCasAnnotator_ImplBase
does implement it, transitively.
Note that AnalysisComponent is not specific to JCAS. There is a
method getRequiredCasInterface() which the user would have to
implement to return JCas.class. The in the process(AbstractCas cas)
method, they should typecas cas to type JCas.
-Adam