You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@uima.apache.org by "Marshall Schor (JIRA)" <ui...@incubator.apache.org> on 2007/12/04 19:31:43 UTC

[jira] Commented: (UIMA-301) CAS APIs should make it easier to deal with arrays of unknown element type

    [ https://issues.apache.org/jira/browse/UIMA-301?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12548335 ] 

Marshall Schor commented on UIMA-301:
-------------------------------------

The interfaces for all CAS array types inherit from CommonArrayFS.
The corresponding JCas types implement the corresponding interface types for the CAS array types.

The JCas type FSArray has just stubs for some of the methods; it needs a working implementation.

The code in ArrayFSImpl is not correct: it ignores the destOffset.  Other impls should be verified.


> CAS APIs should make it easier to deal with arrays of unknown element type
> --------------------------------------------------------------------------
>
>                 Key: UIMA-301
>                 URL: https://issues.apache.org/jira/browse/UIMA-301
>             Project: UIMA
>          Issue Type: Wish
>          Components: Core Java Framework
>            Reporter: Adam Lally
>            Priority: Minor
>             Fix For: 2.2.1
>
>
> There are several places in tools where we need to display the contents of an FS, which could be an array.  Currently we have to iterate over all possible primivie-typed arrays in order to access and display their elements.
> What would have been nice is a common superinterface of all the
> primitive array types, which defines a toStringArray() method. The
> toStringArray() methods are already there on the impls, but there's no
> superinterface that I can use to get at them.
> See UIMA-40 and UIMA-77.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.