I'm probably being dense, but I'm not sure why it wouldn't just work:

Foo : a JCas gen'd class

SubFoo extends Foo - the subclass

new SubFoo(jcas)  would create a new feature structure, assuming the constructor
called its superconstructor (as is normally the case).

mySubFooInstance.getFeatureXyz()  - this would be implemented in the super
class, and work fine, I think, as would the setters...

-Marshall

On 11/21/2016 4:35 PM, Richard Eckart de Castilho wrote:
> On 21.11.2016, at 22:27, Marshall Schor <[email protected]> wrote:
>> On 11/19/2016 1:10 PM, Pablo Duboue wrote:
>>> Can we support generated classes being handled by maven while the user
>>> provides custom subclasses?
>> We currently have a maven plugin that runs JCasGen, so, yes, I think this is
>> possible, even now.
> I presently can't imagine a user to manually create subclasses of JCas cover 
> classes.
> If I simple manually create a subclass e.g. of the built-in Annotation class 
> (doesn't
> even need to be JCasGen-generated), the JCas couldn't pretty much do anything 
> with
> it, could it? I'd have to add several adornments and decorations for JCas to 
> be able
> to make sense of this new class, right?
>
> Best,
>
> -- Richard

Reply via email to