You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@uima.apache.org by Matthias Muehlhausen <mu...@coling-uni-jena.de> on 2007/11/12 14:25:07 UTC

What are cover classes?

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

-- 
Matthias Mühlhausen
Jena University Language and Information Engineering (JULIE) Lab
Phone: +49-3641-944305
Fax:   +49-3641-944321
email: muehlhausen@coling-uni-jena.de
URL:   http://www.coling.uni-jena.de


Re: What are cover classes?

Posted by Marshall Schor <ms...@schor.com>.
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).

-Marshall

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
>>>
>>>     
>>
>>   
>
>


Re: What are cover classes?

Posted by Matthias Muehlhausen <mu...@coling-uni-jena.de>.
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
>>
>>     
>
>   


-- 
Matthias Mühlhausen
Jena University Language and Information Engineering (JULIE) Lab
Phone: +49-3641-944305
Fax:   +49-3641-944321
email: muehlhausen@coling-uni-jena.de
URL:   http://www.coling.uni-jena.de


Re: What are cover classes?

Posted by Marshall Schor <ms...@schor.com>.
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
>