Hi, This is intended to be a singleton. But it is not "featureFinal" - so you can define this exact type in your type system and have any additional features you need added to it (without making a subtype).
See this section of the reference documentation: http://uima.apache.org/d/uimaj-2.4.0/references.html#ugr.ref.jcas.documentannotation_issues It is probably a good idea to add to the framework something that prevents users from creating subtypes or multiple instances of it. Patches welcome! -Marshall On 5/8/2013 8:17 AM, Georg Fette wrote: > Hello, > I have a type system in which I have created a type which inherits from > DocumentAnnotation. As DocumentAnnotation is not inheritanceFinal I thought > that this is allowed. I have now a CAS in which I have several annotations of > that derived type. In the method copyFSInner of CasCopier the proper target > feature structure to copy instances of my type the first DocumentAnnotation in > the index of documentAnnotation of the target CAS. Is DocumentAnnotation to be > thought a singelton in a CAS ? Why isn't it prevented in the framework to > derive from it or to create further instances of that type and add it to the > CAS ? > If this is done the CasCopier can not be properly used. > Greetings > Georg >
