anl.aida.reader
Class AIDACompositeReader

java.lang.Object
  extended by org.apache.uima.resource.Resource_ImplBase
      extended by org.apache.uima.resource.ConfigurableResource_ImplBase
          extended by org.apache.uima.collection.CollectionReader_ImplBase
              extended by anl.aida.reader.AIDACompositeReader
All Implemented Interfaces:
org.apache.uima.collection.base_cpm.BaseCollectionReader, org.apache.uima.collection.CollectionReader, org.apache.uima.resource.ConfigurableResource, org.apache.uima.resource.Resource

public class AIDACompositeReader
extends org.apache.uima.collection.CollectionReader_ImplBase

UIMA CollectionReader reader that delegates the actual reading of documents etc. to AIDAComponentReader implementations. The implementations are instantiated during initialization from a from a list in the ComponentReaderFile.


Field Summary
static java.lang.String CACHE_START_DATE
           
private  int count
           
private  int index
           
private static java.lang.String MESSAGE_DIGEST
           
private  AIDAComponentReader reader
           
private  java.util.List<AIDAComponentReader> readers
           
static java.lang.String READERS_KEY
           
 
Fields inherited from interface org.apache.uima.resource.Resource
PARAM_AGGREGATE_SOFA_MAPPINGS, PARAM_CONFIG_PARAM_SETTINGS, PARAM_PERFORMANCE_TUNING_SETTINGS, PARAM_RESOURCE_MANAGER, PARAM_UIMA_CONTEXT
 
Constructor Summary
AIDACompositeReader()
           
 
Method Summary
 void close()
           
 void getNext(org.apache.uima.cas.CAS cas)
           
 org.apache.uima.util.Progress[] getProgress()
           
 boolean hasNext()
           
 void initialize()
           
private  void next()
           
 
Methods inherited from class org.apache.uima.collection.CollectionReader_ImplBase
destroy, getCasInitializer, getProcessingResourceMetaData, initialize, isConsuming, reconfigure, setCasInitializer, typeSystemInit
 
Methods inherited from class org.apache.uima.resource.ConfigurableResource_ImplBase
getConfigParameterValue, getConfigParameterValue, setConfigParameterValue, setConfigParameterValue
 
Methods inherited from class org.apache.uima.resource.Resource_ImplBase
getCasManager, getLogger, getMetaData, getResourceManager, getUimaContext, getUimaContextAdmin, setLogger, setMetaData
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.uima.resource.ConfigurableResource
getConfigParameterValue, getConfigParameterValue, setConfigParameterValue, setConfigParameterValue
 
Methods inherited from interface org.apache.uima.resource.Resource
getLogger, getMetaData, getResourceManager, getUimaContext, getUimaContextAdmin, setLogger
 

Field Detail

CACHE_START_DATE

public static final java.lang.String CACHE_START_DATE
See Also:
Constant Field Values

MESSAGE_DIGEST

private static final java.lang.String MESSAGE_DIGEST
See Also:
Constant Field Values

READERS_KEY

public static final java.lang.String READERS_KEY
See Also:
Constant Field Values

readers

private java.util.List<AIDAComponentReader> readers

index

private int index

count

private int count

reader

private AIDAComponentReader reader
Constructor Detail

AIDACompositeReader

public AIDACompositeReader()
Method Detail

initialize

public void initialize()
                throws org.apache.uima.resource.ResourceInitializationException
Overrides:
initialize in class org.apache.uima.collection.CollectionReader_ImplBase
Throws:
org.apache.uima.resource.ResourceInitializationException

next

private void next()
           throws org.apache.uima.collection.CollectionException,
                  java.io.IOException
Throws:
org.apache.uima.collection.CollectionException
java.io.IOException

getNext

public void getNext(org.apache.uima.cas.CAS cas)
             throws java.io.IOException,
                    org.apache.uima.collection.CollectionException
Throws:
java.io.IOException
org.apache.uima.collection.CollectionException

hasNext

public boolean hasNext()
                throws java.io.IOException,
                       org.apache.uima.collection.CollectionException
Throws:
java.io.IOException
org.apache.uima.collection.CollectionException

getProgress

public org.apache.uima.util.Progress[] getProgress()

close

public void close()
           throws java.io.IOException
Throws:
java.io.IOException