org.apache.ctakes.core.util
Class ListFactory

java.lang.Object
  extended by org.apache.ctakes.core.util.ListFactory

public class ListFactory
extends Object

Factory to build List of built-in CAS types such as FloatList, IntegerList, StringList, and FSList.

Author:
Mayo Clinic

Constructor Summary
ListFactory()
           
 
Method Summary
static org.apache.uima.jcas.cas.FSList buildList(org.apache.uima.jcas.JCas jcas, org.apache.uima.jcas.cas.TOP[] objArr)
          Builds a FSList from an array of JCas objects.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ListFactory

public ListFactory()
Method Detail

buildList

public static org.apache.uima.jcas.cas.FSList buildList(org.apache.uima.jcas.JCas jcas,
                                                        org.apache.uima.jcas.cas.TOP[] objArr)
Builds a FSList from an array of JCas objects.

Parameters:
jcas - The current JCas.
objArr - Array of JCas objects (objects must extend from TOP).
Returns:
FSList populated with the JCas objects.


Copyright © 2012-2013 The Apache Software Foundation. All Rights Reserved.