You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@uima.apache.org by "Manuel Fiorelli (JIRA)" <ui...@incubator.apache.org> on 2008/10/20 19:45:44 UTC

[jira] Created: (UIMA-1208) How to get the element type of a uima.cas.FSList feature

How to get the element type of a uima.cas.FSList feature
--------------------------------------------------------

                 Key: UIMA-1208
                 URL: https://issues.apache.org/jira/browse/UIMA-1208
             Project: UIMA
          Issue Type: Bug
          Components: Core Java Framework
    Affects Versions: 2.2.2
         Environment: Fedora 9
            Reporter: Manuel Fiorelli
            Priority: Minor


The documentation 

http://incubator.apache.org/uima/downloads/releaseDocs/2.2.2-incubating/docs/html/references/references.html#ugr.ref.xml.component_descriptor.type_system.features

states that in the type system descriptor one may use <elementType> to constraint the type of elements in both array and list features.

However, if one gets the type system of a CAS [myCas.getTypeSystem()],
1) if the feature range is an array, he can retrieve the element type through the method Type.getComponentType()
2) if the feature range is a list, there seems not to be any way to get the element type, since the method Type.getComponentType() returns null


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


[jira] Closed: (UIMA-1208) How to get the element type of a uima.cas.FSList feature

Posted by "Marshall Schor (JIRA)" <ui...@incubator.apache.org>.
     [ https://issues.apache.org/jira/browse/UIMA-1208?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Marshall Schor closed UIMA-1208.
--------------------------------

       Resolution: Fixed
    Fix Version/s: 2.3

Documentation updated.

> How to get the element type of a uima.cas.FSList feature
> --------------------------------------------------------
>
>                 Key: UIMA-1208
>                 URL: https://issues.apache.org/jira/browse/UIMA-1208
>             Project: UIMA
>          Issue Type: Bug
>          Components: Core Java Framework
>    Affects Versions: 2.2.2
>         Environment: Fedora 9
>            Reporter: Manuel Fiorelli
>            Priority: Minor
>             Fix For: 2.3
>
>
> The documentation 
> http://incubator.apache.org/uima/downloads/releaseDocs/2.2.2-incubating/docs/html/references/references.html#ugr.ref.xml.component_descriptor.type_system.features
> states that in the type system descriptor one may use <elementType> to constraint the type of elements in both array and list features.
> However, if one gets the type system of a CAS [myCas.getTypeSystem()],
> 1) if the feature range is an array, he can retrieve the element type through the method Type.getComponentType()
> 2) if the feature range is a list, there seems not to be any way to get the element type, since the method Type.getComponentType() returns null

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


[jira] Commented: (UIMA-1208) How to get the element type of a uima.cas.FSList feature

Posted by "Marshall Schor (JIRA)" <ui...@incubator.apache.org>.
    [ https://issues.apache.org/jira/browse/UIMA-1208?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12654525#action_12654525 ] 

Marshall Schor commented on UIMA-1208:
--------------------------------------

The element-type for an FsList is used for "documentation purposes" and it's used in the Ecore type system conversion stuff.   It is not currently used by much else.

However, it would be good if the element type is accessible via the Type system.  I'll look into whether this can be done, and make the update, unless there are objections.



> How to get the element type of a uima.cas.FSList feature
> --------------------------------------------------------
>
>                 Key: UIMA-1208
>                 URL: https://issues.apache.org/jira/browse/UIMA-1208
>             Project: UIMA
>          Issue Type: Bug
>          Components: Core Java Framework
>    Affects Versions: 2.2.2
>         Environment: Fedora 9
>            Reporter: Manuel Fiorelli
>            Priority: Minor
>
> The documentation 
> http://incubator.apache.org/uima/downloads/releaseDocs/2.2.2-incubating/docs/html/references/references.html#ugr.ref.xml.component_descriptor.type_system.features
> states that in the type system descriptor one may use <elementType> to constraint the type of elements in both array and list features.
> However, if one gets the type system of a CAS [myCas.getTypeSystem()],
> 1) if the feature range is an array, he can retrieve the element type through the method Type.getComponentType()
> 2) if the feature range is a list, there seems not to be any way to get the element type, since the method Type.getComponentType() returns null

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


[jira] Commented: (UIMA-1208) How to get the element type of a uima.cas.FSList feature

Posted by "Thilo Goetz (JIRA)" <ui...@incubator.apache.org>.
    [ https://issues.apache.org/jira/browse/UIMA-1208?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12641303#action_12641303 ] 

Thilo Goetz commented on UIMA-1208:
-----------------------------------

Also see some email discussion here:
http://mail-archives.apache.org/mod_mbox/incubator-uima-user/200810.mbox/%3Cc650a5e70810171745i1870e1a3x18fec5a8386b2f30@mail.gmail.com%3E

> How to get the element type of a uima.cas.FSList feature
> --------------------------------------------------------
>
>                 Key: UIMA-1208
>                 URL: https://issues.apache.org/jira/browse/UIMA-1208
>             Project: UIMA
>          Issue Type: Bug
>          Components: Core Java Framework
>    Affects Versions: 2.2.2
>         Environment: Fedora 9
>            Reporter: Manuel Fiorelli
>            Priority: Minor
>
> The documentation 
> http://incubator.apache.org/uima/downloads/releaseDocs/2.2.2-incubating/docs/html/references/references.html#ugr.ref.xml.component_descriptor.type_system.features
> states that in the type system descriptor one may use <elementType> to constraint the type of elements in both array and list features.
> However, if one gets the type system of a CAS [myCas.getTypeSystem()],
> 1) if the feature range is an array, he can retrieve the element type through the method Type.getComponentType()
> 2) if the feature range is a list, there seems not to be any way to get the element type, since the method Type.getComponentType() returns null

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


[jira] Commented: (UIMA-1208) How to get the element type of a uima.cas.FSList feature

Posted by "Marshall Schor (JIRA)" <ui...@incubator.apache.org>.
    [ https://issues.apache.org/jira/browse/UIMA-1208?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12654554#action_12654554 ] 

Marshall Schor commented on UIMA-1208:
--------------------------------------

After looking into this, it appears quite complex to implement.  So, for now, I will just update the documentation.  Others may wish to contribute a patch :-).  

> How to get the element type of a uima.cas.FSList feature
> --------------------------------------------------------
>
>                 Key: UIMA-1208
>                 URL: https://issues.apache.org/jira/browse/UIMA-1208
>             Project: UIMA
>          Issue Type: Bug
>          Components: Core Java Framework
>    Affects Versions: 2.2.2
>         Environment: Fedora 9
>            Reporter: Manuel Fiorelli
>            Priority: Minor
>
> The documentation 
> http://incubator.apache.org/uima/downloads/releaseDocs/2.2.2-incubating/docs/html/references/references.html#ugr.ref.xml.component_descriptor.type_system.features
> states that in the type system descriptor one may use <elementType> to constraint the type of elements in both array and list features.
> However, if one gets the type system of a CAS [myCas.getTypeSystem()],
> 1) if the feature range is an array, he can retrieve the element type through the method Type.getComponentType()
> 2) if the feature range is a list, there seems not to be any way to get the element type, since the method Type.getComponentType() returns null

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


[jira] Commented: (UIMA-1208) How to get the element type of a uima.cas.FSList feature

Posted by "Marshall Schor (JIRA)" <ui...@incubator.apache.org>.
    [ https://issues.apache.org/jira/browse/UIMA-1208?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12641403#action_12641403 ] 

Marshall Schor commented on UIMA-1208:
--------------------------------------

See also http://markmail.org/message/67tmmk4elb26k456

> How to get the element type of a uima.cas.FSList feature
> --------------------------------------------------------
>
>                 Key: UIMA-1208
>                 URL: https://issues.apache.org/jira/browse/UIMA-1208
>             Project: UIMA
>          Issue Type: Bug
>          Components: Core Java Framework
>    Affects Versions: 2.2.2
>         Environment: Fedora 9
>            Reporter: Manuel Fiorelli
>            Priority: Minor
>
> The documentation 
> http://incubator.apache.org/uima/downloads/releaseDocs/2.2.2-incubating/docs/html/references/references.html#ugr.ref.xml.component_descriptor.type_system.features
> states that in the type system descriptor one may use <elementType> to constraint the type of elements in both array and list features.
> However, if one gets the type system of a CAS [myCas.getTypeSystem()],
> 1) if the feature range is an array, he can retrieve the element type through the method Type.getComponentType()
> 2) if the feature range is a list, there seems not to be any way to get the element type, since the method Type.getComponentType() returns null

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