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

can't intuit meaning of copyFromArray and copyToArray methods on FSArray

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 2.3
    • 2.4.1SDK
    • Core Java Framework
    • None

    Description

      Regarding this method on org.apache.uima.jcas.cas.FSArray:

      public void copyFromArray(String[] src, int srcOffset, int destOffset, int length)

      I read in the 2.3.0 documentation, "Description copied from interface: CommonArrayFS. Copy the contents of an external string array into this array. The strings are parsed and converted to floats."

      This seems incorrect.

      It also does not seem informative enough. If I have a feature that is an FSArray of feature structures, what does it mean to copy from an array of strings?

      Related is what it means to copy such an FSArray of feature structures to an array of strings. Is there some contract implied here?

      Attachments

        Activity

          People

            schor Marshall Schor
            barborak Mike Barborak
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: