On Mon, Oct 20, 2008 at 1:19 PM, Thilo Goetz <[EMAIL PROTECTED]> wrote:
> Manuel Fiorelli wrote:
>>
>> I need to convert a data representation into a CAS. Then, I would like to
>> check the list element type to see if the data type were convertible.
>> Reading this paragraph
>>
>>
>> http://incubator.apache.org/uima/downloads/releaseDocs/2.2.2-incubating/docs/html/references/references.html#ugr.ref.xml.component_descriptor.type_system.features
>>
>> I convinced myself that elementType was applicable also to list types. May
>> be there is an error in the documentation?
>
> I'm afraid so.  Looks like this was wishful thinking on the part
> of whoever wrote that.  The code for getComponentType() looks
> like this:
>

I think that would be me who wrote that.  The element type is there
for documentation purposes, and it's used in the Ecore type system
conversion stuff, but that's it.  (Even for arrays, UIMA doesn't do
much with the element type - it's not enforced in any way.)  The
documentation does say that the element type constraint may or may not
be enforced.  We had also thought maybe it might be supported in JCAS
someday.

However, I do agree that we should be consistent about whether the
element type is accessable through the TypeSystem.

  -Adam

Reply via email to