Class ArrayUtil

java.lang.Object
de.unistuttgart.ims.uima.io.xml.ArrayUtil

public class ArrayUtil
extends java.lang.Object
Utility classes
Author:
reiterns
  • Constructor Summary

    Constructors 
    Constructor Description
    ArrayUtil()  
  • Method Summary

    Modifier and Type Method Description
    static org.apache.uima.jcas.cas.FSArray toFSArray​(org.apache.uima.jcas.JCas jcas, org.apache.uima.cas.FeatureStructure... fs)
    Creates an FSArray from a Java arrray
    static org.apache.uima.jcas.cas.StringArray toStringArray​(org.apache.uima.jcas.JCas jcas, java.lang.String... coll)  
    static org.apache.uima.jcas.cas.StringArray toStringArray​(org.apache.uima.jcas.JCas jcas, java.util.Collection<java.lang.String> coll)
    Creates a UIMA StringArray based on a collection of strings

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • toStringArray

      public static org.apache.uima.jcas.cas.StringArray toStringArray​(org.apache.uima.jcas.JCas jcas, java.util.Collection<java.lang.String> coll)
      Creates a UIMA StringArray based on a collection of strings
      Returns:
      A StringArray that is already added to indexes
    • toStringArray

      public static org.apache.uima.jcas.cas.StringArray toStringArray​(org.apache.uima.jcas.JCas jcas, java.lang.String... coll)
      Returns:
      A StringArray, already added to indexes
      See Also:
      toStringArray(JCas, Collection)
    • toFSArray

      public static org.apache.uima.jcas.cas.FSArray toFSArray​(org.apache.uima.jcas.JCas jcas, org.apache.uima.cas.FeatureStructure... fs)
      Creates an FSArray from a Java arrray
      Returns:
      An FSArray, already added to indexes