Uploaded image for project: 'UIMA'
  1. UIMA
  2. UIMA-1208

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.2.2
    • 2.3
    • Core Java Framework
    • None
    • Fedora 9

    Description

      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

      Attachments

        Activity

          People

            Unassigned Unassigned
            manuel.fiorelli Manuel Fiorelli
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: