uima-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marshall Schor <...@schor.com>
Subject Re: What are cover classes?
Date Wed, 14 Nov 2007 18:51:21 GMT
The *_Type "cover classes" are part of the JCas mechanism.  The design
factored things into parts where each instance would correspond to an
instance of the covered CAS Type, and parts where each instance would
correspond to the type definition itself, for a particular set of CASes
using the same type system.

The *_Type classes hold this latter information.  If we were designing
this today, we would probably make them be inner classes (and thus,
invisible to users).


Matthias Muehlhausen wrote:
> Hi Marshall,
> Thank you for your answer!
> Could you also tell what the also generated *_Type files are for? Are
> they also called 'cover classes'?
> Thank you
> Matthias
> Marshall Schor wrote:
>> Hi Matthias -
>> It's a good question.  When using the JCas, for each UIMA Type, there is
>> generated a corresponding Java Class; this class is called the "cover
>> class" for the corresponding UIMA Type.
>> So, if you declare a UIMA Type having the name mypackage.Sentence, there
>> will be a corresponding JCas cover class whose fully qualified name is
>> mypackage.Sentence.
>> -Marshall
>> Matthias Muehlhausen wrote:
>>> Hello,
>>> I read about 'cover classes' in the JCas Java Doc, but can't find a
>>> definition of that term, could anybody explain what cover classes are?
>>> Thanks,
>>> Matthias

View raw message