TOP or AnnotationBase (which contains view-related code) would be the 
appropriate types, I believe.

It is not possible to store arbitrary objects in the CAS.

-- Richard

On 17.10.2013, at 16:33, <armin.weg...@bka.bund.de> wrote:

> Dear Richard,
> 
> to use StringStringMapEntry, needn't it subclass TOP or FeatureStructure? Is 
> it possible to store an arbitray object into a CAS?
> 
> Cheers,
> Armin
> 
> -----Ursprüngliche Nachricht-----
> Von: Richard Eckart de Castilho [mailto:r...@apache.org] 
> Gesendet: Mittwoch, 16. Oktober 2013 18:02
> An: user@uima.apache.org
> Betreff: Re: HashMap as type feature
> 
> Hi,
> 
> you could define a feature structure e.g.
> 
> StringStringMapEntry {
>  String key
>  String value
> }
> 
> and store these in an FSList. Then, write additional convenience code around 
> that which transforms this to/from a Map<String, String>.
> 
> -- Richard
> 
> On 16.10.2013, at 17:55, Dr. Armin Wegner <arminweg...@googlemail.com> wrote:
> 
>> Hi,
>> 
>> I'd like to have a type feature that is a list of key-value pairs. The 
>> number of pairs is unknown. What's best for this? Is it even possible?
>> 
>> Thanks,
>> Armin

Reply via email to